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

Extension parameters in `extension.neon` should be defined as a structure #192

Closed spaze closed 10 months ago

spaze commented 1 year ago

To allow for typo checking etc.: https://github.com/spaze/phpstan-disallowed-calls/blob/3dfc371dcaa017bda0b66218e4a5db1a9a88baa3/extension.neon#L14-L16

This is now possible by prepending the key name with ?, starting with https://github.com/phpstan/phpstan-src/pull/1686#issuecomment-1234548751

spaze commented 10 months ago

Currently blocked by https://github.com/phpstan/phpstan/issues/10223