Closed k00ni closed 1 year ago
You need to load both extension.neon
and say disallowed-dangerous-calls.neon
, see my example.
Loading just extension.neon
doesn't report anything because you may want to have only your own disallowed config, and loading just disallowed-dangerous-calls.neon
doesn't load the extension config because you may want to include multiple disallowed-*-calls.neon
files.
Let me know if that helps and if yes, please close the issue :-)
Thanks, that works!
I am calling PHPStan (v1.9.2, using PHP 8.1.6) with:
and I get the following error when using one of your neon-files:
My PHPStan config is:
When only using
vendor/spaze/phpstan-disallowed-calls/extension.neon
it doesn't report anything (tested it with a bluntvar_dump
).I would like to check out your PHPStan rules, but can't get it to work. Help is appreciated.