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:
parent
086237aab7
commit
4c1cf37d52
@ -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
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user