Skip to content

Commit

Permalink
Fix: Configure newly added union_types option of phpdoc_to_property_t…
Browse files Browse the repository at this point in the history
…ype fixer
  • Loading branch information
localheinz committed Jan 20, 2024
1 parent 058e7b9 commit ac1714c
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ public static function create(): RuleSet
'phpdoc_to_param_type' => false,
'phpdoc_to_property_type' => [
'scalar_types' => true,
'union_types' => false,
],
'phpdoc_to_return_type' => false,
'phpdoc_trim' => true,
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,7 @@ public static function create(): RuleSet
'phpdoc_to_param_type' => false,
'phpdoc_to_property_type' => [
'scalar_types' => true,
'union_types' => true,
],
'phpdoc_to_return_type' => false,
'phpdoc_trim' => true,
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,7 @@ public static function create(): RuleSet
'phpdoc_to_param_type' => false,
'phpdoc_to_property_type' => [
'scalar_types' => true,
'union_types' => true,
],
'phpdoc_to_return_type' => false,
'phpdoc_trim' => true,
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php82.php
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,7 @@ public static function create(): RuleSet
'phpdoc_to_param_type' => false,
'phpdoc_to_property_type' => [
'scalar_types' => true,
'union_types' => true,
],
'phpdoc_to_return_type' => false,
'phpdoc_trim' => true,
Expand Down
1 change: 1 addition & 0 deletions src/RuleSet/Php83.php
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,7 @@ public static function create(): RuleSet
'phpdoc_to_param_type' => false,
'phpdoc_to_property_type' => [
'scalar_types' => true,
'union_types' => true,
],
'phpdoc_to_return_type' => false,
'phpdoc_trim' => true,
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ protected function expectedRules(): Rules
'phpdoc_to_param_type' => false,
'phpdoc_to_property_type' => [
'scalar_types' => true,
'union_types' => false,
],
'phpdoc_to_return_type' => false,
'phpdoc_trim' => true,
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,7 @@ protected function expectedRules(): Rules
'phpdoc_to_param_type' => false,
'phpdoc_to_property_type' => [
'scalar_types' => true,
'union_types' => true,
],
'phpdoc_to_return_type' => false,
'phpdoc_trim' => true,
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php81Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,7 @@ protected function expectedRules(): Rules
'phpdoc_to_param_type' => false,
'phpdoc_to_property_type' => [
'scalar_types' => true,
'union_types' => true,
],
'phpdoc_to_return_type' => false,
'phpdoc_trim' => true,
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php82Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,7 @@ protected function expectedRules(): Rules
'phpdoc_to_param_type' => false,
'phpdoc_to_property_type' => [
'scalar_types' => true,
'union_types' => true,
],
'phpdoc_to_return_type' => false,
'phpdoc_trim' => true,
Expand Down
1 change: 1 addition & 0 deletions test/Unit/RuleSet/Php83Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,7 @@ protected function expectedRules(): Rules
'phpdoc_to_param_type' => false,
'phpdoc_to_property_type' => [
'scalar_types' => true,
'union_types' => true,
],
'phpdoc_to_return_type' => false,
'phpdoc_trim' => true,
Expand Down

0 comments on commit ac1714c

Please sign in to comment.