Skip to content

Commit

Permalink
Enhancement: Enable date_time_create_from_format_call fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Mar 19, 2022
1 parent 5d94b8c commit 92fbbac
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ For a full diff see [`4.3.0...main`][4.3.0...main].
### Changed

- Updated `friendsofphp/php-cs-fixer` ([#591]), by [@dependabot]
- Enabled `date_time_create_from_format_call` fixer ([#592]), by [@localheinz]


## [`4.3.0`][4.3.0]

Expand Down Expand Up @@ -624,6 +626,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#587]: https://github.com/ergebnis/php-cs-fixer-config/pull/587
[#588]: https://github.com/ergebnis/php-cs-fixer-config/pull/588
[#591]: https://github.com/ergebnis/php-cs-fixer-config/pull/591
[#592]: https://github.com/ergebnis/php-cs-fixer-config/pull/592

[@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 @@ -103,7 +103,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
'control_structure_continuation_position' => [
'position' => 'same_line',
],
'date_time_create_from_format_call' => false,
'date_time_create_from_format_call' => true,
'date_time_immutable' => true,
'declare_equal_normalize' => [
'space' => 'none',
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'control_structure_continuation_position' => [
'position' => 'same_line',
],
'date_time_create_from_format_call' => false,
'date_time_create_from_format_call' => true,
'date_time_immutable' => true,
'declare_equal_normalize' => [
'space' => 'none',
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet
'control_structure_continuation_position' => [
'position' => 'same_line',
],
'date_time_create_from_format_call' => false,
'date_time_create_from_format_call' => true,
'date_time_immutable' => true,
'declare_equal_normalize' => [
'space' => 'none',
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 @@ -109,7 +109,7 @@ final class Php74Test extends ExplicitRuleSetTestCase
'control_structure_continuation_position' => [
'position' => 'same_line',
],
'date_time_create_from_format_call' => false,
'date_time_create_from_format_call' => true,
'date_time_immutable' => true,
'declare_equal_normalize' => [
'space' => 'none',
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 @@ -109,7 +109,7 @@ final class Php80Test extends ExplicitRuleSetTestCase
'control_structure_continuation_position' => [
'position' => 'same_line',
],
'date_time_create_from_format_call' => false,
'date_time_create_from_format_call' => true,
'date_time_immutable' => true,
'declare_equal_normalize' => [
'space' => 'none',
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 @@ -109,7 +109,7 @@ final class Php81Test extends ExplicitRuleSetTestCase
'control_structure_continuation_position' => [
'position' => 'same_line',
],
'date_time_create_from_format_call' => false,
'date_time_create_from_format_call' => true,
'date_time_immutable' => true,
'declare_equal_normalize' => [
'space' => 'none',
Expand Down

0 comments on commit 92fbbac

Please sign in to comment.