Search the Community
Showing results for tags 'phpstan'.
-
PHP Static Analysis Tool - discover bugs in your code without running it! PHPStan focuses on finding errors in your code without actually running it. It catches whole classes of bugs even before you write tests for the code. It moves PHP closer to compiled languages in the sense that the correctness of each line of the code can be checked before you run the actual line. Prerequisites PHPStan requires PHP >= 7.1. You have to run it in environment with PHP 7.x but the actual code does not have to use PHP 7.x features. (Code written for PHP 5.6 and earlier can run on 7.x mostly unmodified.) PHPStan works best with modern object-oriented code. The more strongly-typed your code is, the more information you give PHPStan to work with. Properly annotated and typehinted code (class properties, function and method arguments, return types) helps not only static analysis tools but also other people that work with the code to understand it. More info & Download: [hide][Hidden Content]]