Jaroslav Hanslík
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
Cc @ondrejmirtes
Not sure if it's possible to support this. It's not standard doccomment.
@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 PHPCS does not support https://wiki.php.net/rfc/dnf_types
I think it should be solved by standard sniffs because it's constructor call.