Skip to content

Commit

Permalink
Merge pull request #497 from ergebnis/feature/assign-null-coalescing-…
Browse files Browse the repository at this point in the history
…to-coalesque-equal

Enhancement: Enable `assign_null_coalescing_to_coalesce_equal` fixer
  • Loading branch information
localheinz committed Oct 5, 2021
2 parents baa42ad + 608e58b commit ad31441
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ For a full diff see [`3.0.2...main`][3.0.2...main].
### Changed

* Updated `friendsofphp/php-cs-fixer` ([#495]), by [@dependabot]
* Enabled `assign_null_coalescing_to_coalesce_equal` fixer in `Php74` and `Php80` rule sets ([#497]), by [@localheinz]

### Fixed

Expand Down Expand Up @@ -496,6 +497,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#483]: https://github.com/ergebnis/php-cs-fixer-config/pull/483
[#495]: https://github.com/ergebnis/php-cs-fixer-config/pull/495
[#496]: https://github.com/ergebnis/php-cs-fixer-config/pull/496
[#497]: https://github.com/ergebnis/php-cs-fixer-config/pull/497

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
'array_syntax' => [
'syntax' => 'short',
],
'assign_null_coalescing_to_coalesce_equal' => false,
'assign_null_coalescing_to_coalesce_equal' => true,
'backtick_to_shell_exec' => true,
'binary_operator_spaces' => [
'default' => 'single_space',
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'array_syntax' => [
'syntax' => 'short',
],
'assign_null_coalescing_to_coalesce_equal' => false,
'assign_null_coalescing_to_coalesce_equal' => true,
'backtick_to_shell_exec' => true,
'binary_operator_spaces' => [
'default' => 'single_space',
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class Php74Test extends ExplicitRuleSetTestCase
'array_syntax' => [
'syntax' => 'short',
],
'assign_null_coalescing_to_coalesce_equal' => false,
'assign_null_coalescing_to_coalesce_equal' => true,
'backtick_to_shell_exec' => true,
'binary_operator_spaces' => [
'default' => 'single_space',
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class Php80Test extends ExplicitRuleSetTestCase
'array_syntax' => [
'syntax' => 'short',
],
'assign_null_coalescing_to_coalesce_equal' => false,
'assign_null_coalescing_to_coalesce_equal' => true,
'backtick_to_shell_exec' => true,
'binary_operator_spaces' => [
'default' => 'single_space',
Expand Down

0 comments on commit ad31441

Please sign in to comment.