mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Fix redundant condition
This commit is contained in:
parent
b6dc8f547e
commit
62dff200d5
@ -397,10 +397,8 @@ class ConstFetchAnalyzer
|
||||
|
||||
$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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user