Skip to content

linter: improved unused checker#1212

Open
fuale wants to merge 1 commit intoVKCOM:masterfrom
fuale:master
Open

linter: improved unused checker#1212
fuale wants to merge 1 commit intoVKCOM:masterfrom
fuale:master

Conversation

@fuale
Copy link
Copy Markdown

@fuale fuale commented Sep 30, 2023

In the following cases:

$bar = 1;
$obj->foo($bar); // consider $obj has __call magic method.

no need to throw a warning about an unused variable, if it inside magic method call.

In the following cases:

$bar = 1;
$obj->foo($bar);

no need to throw a warning about an unused variable, if it inside magic method call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant