PHPStan in GitLab
Let's get PHPStan working with Gitlab and code quality.
In your .gitlab-ci.yml add a new section:
phpstan:
stage: testing
needs:
- composer
script:
- php -d memory_limit=-1 vendor/bin/phpstan analyse -c phpstan.neon --error-format gitlab > ...
guywarner.dev1 min read
Lars Moelleken
PHP Developer
Does it show the results per file in the gitlab UI? Is this working for regular commits or only for pull requests?