coding-standard
coding-standard copied to clipboard
UnusedVariableSniff detects anonymous class property as unused variable
Here $bar is considered an unused variable:
$foo = new class () {
public array $bar = [];
};
This also happens if I use the property in a method, by the way :)
@mfb I'm not able to reproduce it. Can you please prepare failing test?