1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-11 08:49:52 +01:00

Improve error message for UnusedVariable

This commit is contained in:
Matt Brown 2020-11-13 12:36:17 -05:00
parent 086237aab7
commit 4c1cf37d52

View File

@ -736,7 +736,7 @@ class StatementsAnalyzer extends SourceAnalyzer
&& !$this->data_flow_graph->isVariableUsed($assignment_node)
) {
$issue = new UnusedVariable(
'Variable ' . $var_id . ' is never referenced',
$var_id . ' is never referenced or the value is not used',
$original_location
);