Skip to content

Commit

Permalink
Add better mixed check
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Jan 14, 2020
1 parent 0f6b61d commit de7a870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Type/NegatedAssertionReconciler.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static function reconcile(
&& strpos($key, '[') === false
) {
foreach ($existing_var_type->getAtomicTypes() as $atomic) {
if (!$atomic instanceof TMixed
if (!$existing_var_type->hasMixed()
|| $atomic instanceof Type\Atomic\TNonEmptyMixed
) {
$failed_reconciliation = 2;
Expand Down

0 comments on commit de7a870

Please sign in to comment.