Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 889 Bytes

CONTRIBUTING.md

File metadata and controls

42 lines (32 loc) · 889 Bytes

Contributing

When contributing, you can fix some things that will be detected by CI anyway before sending your pull request.

The following tools will be installed in the tools directory, so they don't share the bundle requirements.

PHPStan

composer install --working-dir=tools/phpstan
tools/phpstan/vendor/bin/phpstan analyze
# Based on the results, you may want to update the baseline
tools/phpstan/vendor/bin/phpstan analyze --generate-baseline

PHP CS Fixer

composer install --working-dir=tools/php-cs-fixer
# Check what can be fixed
tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --diff
# Fix them
tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --diff

Psalm

composer install --working-dir=tools/psalm
tools/psalm/vendor/bin/psalm

PHPUnit

./vendor/bin/simple-phpunit