Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

composer(deps): bump friendsofphp/php-cs-fixer from 2.18.6 to 2.19.0 #400

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.php_cs export-ignore
/.php-cs-fixer.php export-ignore
/composer-require-checker.json export-ignore
/infection.json export-ignore
/Makefile export-ignore
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
restore-keys: "php-${{ matrix.php-version }}-php-cs-fixer-"

- name: "Run friendsofphp/php-cs-fixer"
run: "vendor/bin/php-cs-fixer fix --config=.php_cs --diff --diff-format=udiff --dry-run --verbose"
run: "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --diff --diff-format=udiff --dry-run --verbose"

dependency-analysis:
name: "Dependency Analysis"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/renew.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
restore-keys: "php-${{ matrix.php-version }}-php-cs-fixer-"

- name: "Run friendsofphp/php-cs-fixer"
run: "vendor/bin/php-cs-fixer fix --config=.php_cs --diff --diff-format=udiff --verbose"
run: "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --diff --diff-format=udiff --verbose"

- name: "Commit modified files"
uses: "stefanzweifel/git-auto-commit-action@v4.11.0"
Expand Down
4 changes: 2 additions & 2 deletions .php_cs → .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
])
->ignoreDotFiles(false)
->in(__DIR__)
->name('.php_cs');
->name('.php-cs-fixer.php');

$config->setCacheFile(__DIR__ . '/.build/php-cs-fixer/.php_cs.cache');
$config->setCacheFile(__DIR__ . '/.build/php-cs-fixer/.php-cs-fixer.cache');

return $config;
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

For a full diff see [`2.13.1...main`][2.13.1...main].

### Changed

* Updated `friendsofphp/php-cs-fixer` ([#400]), by [@dependabot]

## [`2.13.1`][2.13.1]

For a full diff see [`2.13.0...2.13.1`][2.13.0...2.13.1].
Expand Down Expand Up @@ -390,6 +394,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#352]: https://github.com/ergebnis/php-cs-fixer-config/pull/352
[#354]: https://github.com/ergebnis/php-cs-fixer-config/pull/354
[#392]: https://github.com/ergebnis/php-cs-fixer-config/pull/392
[#400]: https://github.com/ergebnis/php-cs-fixer-config/pull/400

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ coding-standards: vendor ## Normalizes composer.json with ergebnis/composer-norm
composer normalize
yamllint -c .yamllint.yaml --strict .
mkdir -p .build/php-cs-fixer
vendor/bin/php-cs-fixer fix --config=.php_cs --diff --diff-format=udiff --verbose
vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --diff --diff-format=udiff --verbose

.PHONY: dependency-analysis
dependency-analysis: vendor ## Runs a dependency analysis with maglnet/composer-require-checker
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Pick one of the rule sets:
* [`Ergebnis\PhpCsFixer\RuleSet\Php80`](src/RuleSet/Php80.php)
* [`Ergebnis\PhpCsFixer\RuleSet\PhpUnit`](src/RuleSet/PhpUnit.php)

Create a configuration file `.php_cs` in the root of your project:
Create a configuration file `.php-cs-fixer.php` in the root of your project:

```php
<?php
Expand Down Expand Up @@ -134,7 +134,7 @@ If you like [`Makefile`](https://www.gnu.org/software/make/manual/make.html#Intr
+.PHONY: coding-standards
+coding-standards: vendor
+ mkdir -p .build/php-cs-fixer
+ vendor/bin/php-cs-fixer fix --config=.php_cs --diff --verbose
+ vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --diff --verbose

vendor: composer.json composer.lock
composer validate
Expand Down Expand Up @@ -234,7 +234,7 @@ If you like [GitHub Actions](https://github.com/features/actions), add a `coding
+ restore-keys: "php-${{ matrix.php-version }}-php-cs-fixer-"
+
+ - name: "Run friendsofphp/php-cs-fixer"
+ run: "vendor/bin/php-cs-fixer fix --config=.php_cs --diff --diff-format=udiff --dry-run --verbose"
+ run: "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --diff --diff-format=udiff --dry-run --verbose"
```

## Changelog
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"require": {
"php": "^7.2 || ^8.0",
"ext-filter": "*",
"friendsofphp/php-cs-fixer": "~2.18.6"
"friendsofphp/php-cs-fixer": "~2.19.0"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.13.3",
Expand Down
55 changes: 30 additions & 25 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions src/RuleSet/Faker.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ final class Faker extends AbstractRuleSet
'break',
'continue',
'default',
'die',
'do',
'exit',
'for',
Expand Down Expand Up @@ -187,7 +186,11 @@ final class Faker extends AbstractRuleSet
'switch_case_space' => true,
'ternary_operator_spaces' => true,
'ternary_to_null_coalescing' => true,
'trailing_comma_in_multiline_array' => true,
'trailing_comma_in_multiline' => [
'elements' => [
'arrays',
],
],
'trim_array_spaces' => true,
'unary_operator_spaces' => true,
'visibility_required' => [
Expand Down
6 changes: 5 additions & 1 deletion src/RuleSet/Laravel6.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,11 @@ final class Laravel6 extends AbstractRuleSet
'ternary_operator_spaces' => true,
'ternary_to_elvis_operator' => false,
'ternary_to_null_coalescing' => false,
'trailing_comma_in_multiline_array' => true,
'trailing_comma_in_multiline' => [
'elements' => [
'arrays',
],
],
'trim_array_spaces' => true,
'unary_operator_spaces' => true,
'use_arrow_functions' => false,
Expand Down
7 changes: 5 additions & 2 deletions src/RuleSet/Php71.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ final class Php71 extends AbstractRuleSet implements ExplicitRuleSet
'continue',
'declare',
'default',
'die',
'do',
'exit',
'for',
Expand Down Expand Up @@ -888,6 +887,7 @@ final class Php71 extends AbstractRuleSet implements ExplicitRuleSet
],
'phpdoc_to_comment' => false,
'phpdoc_to_param_type' => false,
'phpdoc_to_property_type' => false,
'phpdoc_to_return_type' => false,
'phpdoc_trim' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
Expand Down Expand Up @@ -1020,8 +1020,11 @@ final class Php71 extends AbstractRuleSet implements ExplicitRuleSet
'ternary_operator_spaces' => true,
'ternary_to_elvis_operator' => true,
'ternary_to_null_coalescing' => true,
'trailing_comma_in_multiline_array' => [
'trailing_comma_in_multiline' => [
'after_heredoc' => false,
'elements' => [
'arrays',
],
],
'trim_array_spaces' => true,
'unary_operator_spaces' => true,
Expand Down
7 changes: 5 additions & 2 deletions src/RuleSet/Php72.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ final class Php72 extends AbstractRuleSet implements ExplicitRuleSet
'continue',
'declare',
'default',
'die',
'do',
'exit',
'for',
Expand Down Expand Up @@ -888,6 +887,7 @@ final class Php72 extends AbstractRuleSet implements ExplicitRuleSet
],
'phpdoc_to_comment' => false,
'phpdoc_to_param_type' => false,
'phpdoc_to_property_type' => false,
'phpdoc_to_return_type' => false,
'phpdoc_trim' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
Expand Down Expand Up @@ -1020,8 +1020,11 @@ final class Php72 extends AbstractRuleSet implements ExplicitRuleSet
'ternary_operator_spaces' => true,
'ternary_to_elvis_operator' => true,
'ternary_to_null_coalescing' => true,
'trailing_comma_in_multiline_array' => [
'trailing_comma_in_multiline' => [
'after_heredoc' => false,
'elements' => [
'arrays',
],
],
'trim_array_spaces' => true,
'unary_operator_spaces' => true,
Expand Down
7 changes: 5 additions & 2 deletions src/RuleSet/Php73.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet
'continue',
'declare',
'default',
'die',
'do',
'exit',
'for',
Expand Down Expand Up @@ -888,6 +887,7 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet
],
'phpdoc_to_comment' => false,
'phpdoc_to_param_type' => false,
'phpdoc_to_property_type' => false,
'phpdoc_to_return_type' => false,
'phpdoc_trim' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
Expand Down Expand Up @@ -1020,8 +1020,11 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet
'ternary_operator_spaces' => true,
'ternary_to_elvis_operator' => true,
'ternary_to_null_coalescing' => true,
'trailing_comma_in_multiline_array' => [
'trailing_comma_in_multiline' => [
'after_heredoc' => false,
'elements' => [
'arrays',
],
],
'trim_array_spaces' => true,
'unary_operator_spaces' => true,
Expand Down
Loading