Skip to content
Permalink
Browse files

Fix redundant condition

  • Loading branch information...
muglug committed Aug 17, 2019
1 parent b6dc8f5 commit 62dff200d5cbafb16c6fe008513b238d812de5d5
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/ConstFetchAnalyzer.php
@@ -397,10 +397,8 @@ public static function analyzeClassConst(
$stmt->inferredType = Type::getMixed();
if ($stmt->class instanceof PhpParser\Node\Expr) {
if (ExpressionAnalyzer::analyze($statements_analyzer, $stmt->class, $context) === false) {
return;
}
if (ExpressionAnalyzer::analyze($statements_analyzer, $stmt->class, $context) === false) {
return false;
}
return null;

0 comments on commit 62dff20

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