First of all, many thanks to spend your time on this library!
- Fork susina/param-resolver repository, clone it locally and apply your patches.
- Run the test suite by
composer testcommand and fix all red tests. - Run static analysis tool by
composer analyticscommand and fix all errors. - Fix the coding standard by running
composer cs:fix.
We provide a check command for all the previously described actions: run composer check before submitting a pull request.
While developing, the test part is very important: if you apply a patch to the existing code, the test suite must run without errors or failures and if you add a new functionality, no one will consider it without tests.
Our test tool is Pest and we provide a script to launch it:
composer testWe provides three commands to print the code coverage report or to generate it in html or xml format:
composer coverageto print a coverage summary on your consolecomposer coverage:htmlcommand generates a code coverage report in html format, into the directorycoverage/composer coverage:clovergenerates the report in xml format, intoclover.xmlfile.
To prevent as many bugs as possible, we use a static analysis tool called Psalm. To launch it, run the following command:
composer analyticsAfter its analysis, Psalm outputs errors and issues with its suggestions on how to fix them.
We ship our script to easily fix coding standard errors, via php-cs-fixer tool. To fix coding standard errors just run:
composer cs:fixand to show the errors without fixing them, run:
composer cs:checkIf you want to learn more about our code style, see https://github.com/susina/coding-standard.