mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Only set if non-null
This commit is contained in:
parent
adc658901a
commit
3fd70a9c88
@ -941,7 +941,9 @@ class FunctionCallAnalyzer extends \Psalm\Internal\Analyzer\Statements\Expressio
|
||||
$context
|
||||
);
|
||||
|
||||
$statements_analyzer->node_data->setType($stmt, $const_type);
|
||||
if ($const_type) {
|
||||
$statements_analyzer->node_data->setType($stmt, $const_type);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$context->check_consts = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user