spaze / phpstan-disallowed-calls

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

It would be cool if I could disallow a call with an empty array, e.g. `func([])` #233

Closed spaze closed 11 months ago

spaze commented 11 months ago

What the title says. It's not currently possible because the param config accepts only scalars. I'd find this very useful in $company and I'd buy myself a good beer once implemented.