Skip to content

Commit 11812f2

Browse files
committed
Update CONTRIBUTING.md and set version of php-cs-fixer fixed to current latest version
1 parent 549ceae commit 11812f2

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

CONTRIBUTING.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,12 @@ we ask the same of all community contributions as well:
8585
will be released under that license. For substantial contributions, we may
8686
ask you to sign a [Contributor License Agreement (CLA)][cla].
8787
2. We follow all of the relevant PSR recommendations from the [PHP Framework
88-
Interop Group][php-fig]. Please submit code that follows these standards.
89-
The [PHP CS Fixer][cs-fixer] tool can be helpful for formatting your code.
88+
Interop Group][php-fig]. Please submit code that follows the
89+
[PSR-12 standard](php-fig-psr12).
90+
The [PHP CS Fixer][cs-fixer] tool can be helpful for formatting your code.
91+
You can install the currently used version of PHP CS Fixer using
92+
`composer install --working-dir=tools/php-cs-fixer` and automatically format
93+
your code by running `tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --verbose`.
9094
3. We maintain a high percentage of code coverage in our unit tests. If you make
9195
changes to the code, please add, update, and/or remove tests as appropriate.
9296
Tests are run via `make test` command.
@@ -152,7 +156,8 @@ category field should exist with the value set to an empty string `""`.
152156
[pull-requests]: https://github.com/aws/aws-sdk-php/pulls
153157
[license]: http://aws.amazon.com/apache2.0/
154158
[cla]: https://github.com/aws/aws-cla/blob/master/amazon-single-contribution-license.txt
155-
[php-fig]: http://php-fig.org
159+
[php-fig]: https://www.php-fig.org/
160+
[php-fig-psr12]: https://www.php-fig.org/psr/psr-12/
156161
[cs-fixer]: http://cs.sensiolabs.org/
157162
[phpstan]: https://github.com/phpstan/phpstan
158163
[sphinx]: http://sphinx-doc.org/

tools/php-cs-fixer/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"require": {
3-
"friendsofphp/php-cs-fixer": "^3.8.0"
3+
"friendsofphp/php-cs-fixer": "3.11.0"
44
}
55
}

0 commit comments

Comments
 (0)