rawr / fqn-check
Checks source trees for not fully qualified function calls.
1.3.0
2022-07-05 22:56 UTC
Requires
- nikic/php-parser: ^2.0|^3.0|^4.0
Requires (Dev)
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^7.0
README
Checks source trees for fully qualified function calls and constants.
Installation
composer require --dev kelunik/fqn-check
Usage
vendor/bin/fqn-check /path/to/source
All not fully qualified function calls and constants will be listed and the exit code will be 1
if any such function call is found, 0
otherwise.
Alternatives
You might also want to check out friendsofphp/php-cs-fixer with its native_function_invocation
option.