Jaroslav Hanslík

Results 108 comments of Jaroslav Hanslík

It's intentional: https://github.com/slevomat/coding-standard/commit/f02675182fca6ba88e839a9433ebf4557e356015 The actual report matches the sniff name. Your version does make sense but it will need another sniff.

I expect I will remove this sniff in future major version. It is job more for PHPStan/Psalm.

Is not possible that `unset($sFo)` will work too?

You can disable reporting specific error codes

@mfb I'm not able to reproduce it. Can you please prepare failing test?

Fixed in https://github.com/slevomat/coding-standard/commit/d82a6713c0063ba31e1d2bbc8a6df22798a2e370

I think it should be solved by standard sniffs because it's constructor call.