From de7a870509017dbed649ba7040a5620e32ff88a0 Mon Sep 17 00:00:00 2001 From: Brown Date: Tue, 14 Jan 2020 18:38:02 -0500 Subject: [PATCH] Add better mixed check --- src/Psalm/Internal/Type/NegatedAssertionReconciler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Internal/Type/NegatedAssertionReconciler.php b/src/Psalm/Internal/Type/NegatedAssertionReconciler.php index df36f72cbea..d12b5a0f810 100644 --- a/src/Psalm/Internal/Type/NegatedAssertionReconciler.php +++ b/src/Psalm/Internal/Type/NegatedAssertionReconciler.php @@ -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;