diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php index 5ff544bfc..138f3b585 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php @@ -263,7 +263,7 @@ class FunctionCallAnalyzer extends \Psalm\Internal\Analyzer\Statements\Expressio $is_maybe_root_function ) === false ) { - return false; + return; } } } else { diff --git a/tests/IssueSuppressionTest.php b/tests/IssueSuppressionTest.php index ea48fe5b3..28c3b7a4f 100644 --- a/tests/IssueSuppressionTest.php +++ b/tests/IssueSuppressionTest.php @@ -89,6 +89,15 @@ class IssueSuppressionTest extends TestCase strlen("a", "b"); }' ], + 'suppressUndefinedFunction' => [ + '