From 059eb5e29d786bce677f39ceff2b55ff891f61a6 Mon Sep 17 00:00:00 2001 From: orklah Date: Sat, 31 Jul 2021 21:54:15 +0200 Subject: [PATCH] break the > assertion thing to see what start to fall apart --- .../Internal/Analyzer/Statements/Expression/AssertionFinder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/AssertionFinder.php b/src/Psalm/Internal/Analyzer/Statements/Expression/AssertionFinder.php index 77e9b8e07..70c4c17c7 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/AssertionFinder.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/AssertionFinder.php @@ -93,7 +93,7 @@ class AssertionFinder if ($var_name) { if ($candidate_if_types) { - $if_types[$var_name] = [['>' . \json_encode($candidate_if_types[0])]]; + $if_types[$var_name] = [['&' . \json_encode($candidate_if_types[0])]]; } else { $if_types[$var_name] = [['!falsy']]; }