Open janmartenjongerius opened 5 years ago
An initial test shows that GrumPHP doesn't support the max
level, the 7
level works. Due to the nature of our projects it's likely we will be some versions behind the latest version of PHPStan, my initial test showed 0.8.5
which contains this level.
Feel free to make a pull request for this.
The PHPStan level is currently set to 4:
At the time of implementing it, this was known as the highest level available.
As PHPStan is still growing and expanding, so are the levels it supports. Currently, there are 8 levels available.
To both have the most in-depth analysis and keep up with new developments, the level can be set to
max
. The following is an excerpt of the current documentation of PHPStan:When introducing PHPStan in our testing suite and CI environments, we immediately went to the highest level available and, to the best of my knowledge, this was very well accepted by end-users. Setting it to
max
reduces maintenance and increases code quality for those who use it.I have not looked into if the GrumPHP task for PHPStan would prevent using a non-numeric value for the level. If that is the case, we can choose to patch it or first to only upgrade to a few levels higher.