Skip to content

Commit e938e7b

Browse files
docs: update usage of PHP-CS-Fixer (#7728)
* doc: update usage of PHP-CS-Fixer * doc: fix typos
1 parent c0a8d88 commit e938e7b

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

CONTRIBUTING.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ APP_DEBUG=1 tests/Fixtures/app/console debug:config
5757
The API Platform project follows [Symfony coding standards](https://symfony.com/doc/current/contributing/code/standards.html).
5858
But don't worry, you can fix CS issues automatically using the [PHP CS Fixer](https://cs.symfony.com) tool:
5959

60-
php-cs-fixer.phar fix
60+
```shell
61+
vendor/bin/php-cs-fixer fix --diff
62+
```
63+
64+
> [!NOTE]
65+
> The first run may take some time, then the following runs will be faster because the cache will be used.
6166
6267
And then, add the fixed file to your commit before pushing.
6368
Be sure to add only **your modified files**. If any other file is fixed by cs tools, just revert it before committing.
@@ -230,7 +235,7 @@ exit 0
230235

231236
## Changing a version constraint
232237

233-
Preferably change the version inside the root `composer.json`, then use `composer blend --all` to re-map the depedency accross each sub-project automatically.
238+
Preferably change the version inside the root `composer.json`, then use `composer blend --all` to re-map the dependency across each sub-project automatically.
234239

235240
# License and Copyright Attribution
236241

0 commit comments

Comments
 (0)