Improvements
CI run
IdeHelper can now run in CI pipelines using --ci
flag, e.g. add this after phpunit, phpstan, and cs:
- vendor/bin/phpunit
- vendor/bin/phpstan
- vendor/bin/phpcs
- bin/cake annotate all -d --ci
This requires the test
DB connection to be up and migrations run (up to date tables).
This helps to make sure PRs are fully up to date on the annotations, as those are often needed for PHPStan to fully understand the code and be able to give proper feedback.
For larger projects you might need to raise also memory limit:
- php -d memory_limit=1G bin/cake.php annotate all -d --ci
Note how it requires the -d
/--dry-run
flag here to not modify any code, only report it.
Full Changelog: 2.10.2...2.11.0