Skip to content
Permalink
Browse files

Be more lenient returning false

  • Loading branch information...
muglug committed Jun 15, 2019
1 parent 69a2fa3 commit 38cee39c2259c44b1490919040c49a235428d07e
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/Psalm/Internal/Analyzer/Statements/Expression/Call/NewAnalyzer.php
@@ -268,7 +268,7 @@ public static function analyze(
$statements_analyzer->getSuppressedIssues(),
false
) === false) {
return false;
return;
}
if ($codebase->interfaceExists($fq_class_name)) {
@@ -279,7 +279,6 @@ public static function analyze(
),
$statements_analyzer->getSuppressedIssues()
)) {
return false;
}
return null;
@@ -303,7 +302,7 @@ public static function analyze(
),
$statements_analyzer->getSuppressedIssues()
)) {
return false;
return;
}
}

0 comments on commit 38cee39

Please sign in to comment.
You can’t perform that action at this time.