Add phpstan code analysis tool
What does this MR do?
Add phpstan to do static analysis.
I didn't integrate it with any of the scripts, but you can run it with:
./scripts/docker-compose run --no-deps app vendor/bin/phpstan analyse --memory-limit=99999999999
Config options are in phpstan.neon
.
How confident are you it won't break things if deployed?
Nothing to break!
Links to related issues
Checklist
-
added a test, or explain why one is not needed/possible... -
no unrelated changes -
asked someone for a code review -
joined #foodsharing-beta channel at https://slackin.yunity.org -
added an entry to CHANGELOG.md (description, merge request link, username(s))