spaze / phpstan-disallowed-calls

PHPStan rules to detect disallowed method & function calls, constant, namespace, attribute & superglobal usages
MIT License
255 stars 17 forks source link

It's already a list, no need to call `array_values()` #253

Closed spaze closed 8 months ago

spaze commented 8 months ago

This is a new bleeding edge rule added in PHPStan 1.10.59 which resulted in "Parameter #1 $array (non-empty-list) of array_values is already a list, call has no effect."