-
Notifications
You must be signed in to change notification settings - Fork 18
phpstan
Scott Dutton edited this page Dec 2, 2017
·
4 revisions
phpstan analyze src || true > phpstan.txt
./vendor/bin/diffFilter --phpstan diff.txt phpstan.txt
Sometimes the errors reported are not on lines which have been changed, for example changing an interface. the usage of these interfaces are flagged as errors. To resolve this issue you also need to pass the --autoload argument with the location of the autoloader. If passed an autoload file the class will be loaded though reflection and related errors will also be reported.