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

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

Closed spaze closed 12 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 12 months ago

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