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

Enhancement: Enable ensure_single_space option of whitespace_after_comma_in_array fixer #645

Merged
merged 1 commit into from
Aug 19, 2022
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: 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 [`4.6.0...main`][4.6.0...main].
### Changed

- Updated `friendsofphp/php-cs-fixer` ([#642]), by [@dependabot]
- Configured the `whitespace_after_comma_in_array` fixer to ensure a single space using the `'ensure_single_space` option ([#645]), by [@localheinz]

### Fixed

Expand Down Expand Up @@ -722,6 +723,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#637]: https://github.com/ergebnis/php-cs-fixer-config/pull/637
[#642]: https://github.com/ergebnis/php-cs-fixer-config/pull/642
[#644]: https://github.com/ergebnis/php-cs-fixer-config/pull/644
[#645]: https://github.com/ergebnis/php-cs-fixer-config/pull/645

[@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 @@ -760,7 +760,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
],
'void_return' => true,
'whitespace_after_comma_in_array' => [
'ensure_single_space' => false,
'ensure_single_space' => true,
],
'yoda_style' => [
'always_move_variable' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
],
'void_return' => true,
'whitespace_after_comma_in_array' => [
'ensure_single_space' => false,
'ensure_single_space' => true,
],
'yoda_style' => [
'always_move_variable' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet
],
'void_return' => true,
'whitespace_after_comma_in_array' => [
'ensure_single_space' => false,
'ensure_single_space' => true,
],
'yoda_style' => [
'always_move_variable' => true,
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 @@ -766,7 +766,7 @@ final class Php74Test extends ExplicitRuleSetTestCase
],
'void_return' => true,
'whitespace_after_comma_in_array' => [
'ensure_single_space' => false,
'ensure_single_space' => true,
],
'yoda_style' => [
'always_move_variable' => true,
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 @@ -769,7 +769,7 @@ final class Php80Test extends ExplicitRuleSetTestCase
],
'void_return' => true,
'whitespace_after_comma_in_array' => [
'ensure_single_space' => false,
'ensure_single_space' => true,
],
'yoda_style' => [
'always_move_variable' => true,
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php81Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ final class Php81Test extends ExplicitRuleSetTestCase
],
'void_return' => true,
'whitespace_after_comma_in_array' => [
'ensure_single_space' => false,
'ensure_single_space' => true,
],
'yoda_style' => [
'always_move_variable' => true,
Expand Down