phpstan-banned-code
phpstan-banned-code copied to clipboard
Detect banned code through PHPStan
Our tests don't start with `Tests\`, but with `App\Tests\`. It would be nice if this would be configurable, for `use_from_tests`.
Tackling some code mishabits I'd love to disable else and elseif aka enable detection. How would one do that ?
Would be great if one could also ban single classes or even namespaces. This is especially usefull when you wanne get rid of a external dependency in which you cannot...
Hi Ekino, As the detection of die/exit is enabled by default in the extension.neon. Is it possible to disable such detection in my project? If so, how to do it?...
I stumbled upon this when trying to ban the use of `sprintf` in our project. Because we are using the amazing https://github.com/thecodingmachine/safe, we also have to ban `\Safe\printf`. The configuration...
It seems advanced configuration is not easy to get going. According to PHPstan docs you shouldn't use extension installer when not wanting all rules of an extension. I tried both...
Updates the requirements on [nikic/php-parser](https://github.com/nikic/PHP-Parser) to permit the latest version. Release notes Sourced from nikic/php-parser's releases. PHP-Parser 5.3.0 Added Added indent option to pretty printer, which can be used to...
Updates the requirements on [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) to permit the latest version. Release notes Sourced from phpunit/phpunit's releases. PHPUnit 11.2.6 Changed #5880: Add hints to CLI parameter deprecation messages How to install...
Updates the requirements on [symfony/var-dumper](https://github.com/symfony/var-dumper) to permit the latest version. Release notes Sourced from symfony/var-dumper's releases. v7.1.2 Changelog (https://github.com/symfony/var-dumper/compare/v7.1.1...v7.1.2) bug symfony/symfony#57397 [VarDumper] Fix FFI caster test (@alexandre-daubois) Changelog Sourced from...
Hello! 👋🏻 Can we add `ray()` to the banned functions? It's an alternative to `dump()`. See https://github.com/spatie/ray/ for more information. Thanks!