PHP Static Analysis Tool - discover bugs in your code without running it.
Into a project:
composer require pharhub/phpstan
Into a project, but only for development:
composer require --dev pharhub/phpstan
composer global require pharhub/phpstan
Note: To install any packages from PharHub, you need to add PharHub to your repositories first.
Please see instructions on the home page.