This Pull Request adds nunomaduro/larastan as require-dev dependency. Larastan is a wrapper of PHPStan, and is a static analysis tool for PHP.
About Phpstan: "PHPStan is a static analysis tool for PHP code. It parses your code and tries to find flaws in the program logic (like a variable being used before being declared, or a function being called that does not exist...). It is not the ultimate tool for catching bugs but it has one huge advantage: it does not need a lot work to set up! No need to write unit tests, simply run the tool and it will output a list of potential errors!".
This Pull Request adds nunomaduro/larastan as
require-dev
dependency. Larastan is a wrapper of PHPStan, and is a static analysis tool for PHP.About Phpstan: "PHPStan is a static analysis tool for PHP code. It parses your code and tries to find flaws in the program logic (like a variable being used before being declared, or a function being called that does not exist...). It is not the ultimate tool for catching bugs but it has one huge advantage: it does not need a lot work to set up! No need to write unit tests, simply run the tool and it will output a list of potential errors!".
You can read more in this article: medium.com/@ondrejmirtes/phpstan-2939cd0ad0e3
This Pull Request also fixes the errors detected until level
5
.Usage:
Notes:
--level
option:./vendor/bin/phpstan analyse --level=5
../vendor/bin/phpstan analyse
was added to.travis
file.