Skip to content

Commit 27808b8

Browse files
committed
Fix: Configure newly added types_map option of phpdoc_to_property_type fixer
1 parent 9bac15d commit 27808b8

File tree

12 files changed

+12
-0
lines changed

12 files changed

+12
-0
lines changed

src/RuleSet/Php74.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ public static function create(): RuleSet
683683
'phpdoc_to_param_type' => false,
684684
'phpdoc_to_property_type' => [
685685
'scalar_types' => true,
686+
'types_map' => [],
686687
'union_types' => false,
687688
],
688689
'phpdoc_to_return_type' => false,

src/RuleSet/Php80.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,7 @@ public static function create(): RuleSet
696696
'phpdoc_to_param_type' => false,
697697
'phpdoc_to_property_type' => [
698698
'scalar_types' => true,
699+
'types_map' => [],
699700
'union_types' => true,
700701
],
701702
'phpdoc_to_return_type' => false,

src/RuleSet/Php81.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ public static function create(): RuleSet
698698
'phpdoc_to_param_type' => false,
699699
'phpdoc_to_property_type' => [
700700
'scalar_types' => true,
701+
'types_map' => [],
701702
'union_types' => true,
702703
],
703704
'phpdoc_to_return_type' => false,

src/RuleSet/Php82.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ public static function create(): RuleSet
698698
'phpdoc_to_param_type' => false,
699699
'phpdoc_to_property_type' => [
700700
'scalar_types' => true,
701+
'types_map' => [],
701702
'union_types' => true,
702703
],
703704
'phpdoc_to_return_type' => false,

src/RuleSet/Php83.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ public static function create(): RuleSet
698698
'phpdoc_to_param_type' => false,
699699
'phpdoc_to_property_type' => [
700700
'scalar_types' => true,
701+
'types_map' => [],
701702
'union_types' => true,
702703
],
703704
'phpdoc_to_return_type' => false,

src/RuleSet/Php84.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ public static function create(): RuleSet
698698
'phpdoc_to_param_type' => false,
699699
'phpdoc_to_property_type' => [
700700
'scalar_types' => true,
701+
'types_map' => [],
701702
'union_types' => true,
702703
],
703704
'phpdoc_to_return_type' => false,

test/Unit/RuleSet/Php74Test.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,7 @@ protected function expectedRules(): Rules
706706
'phpdoc_to_param_type' => false,
707707
'phpdoc_to_property_type' => [
708708
'scalar_types' => true,
709+
'types_map' => [],
709710
'union_types' => false,
710711
],
711712
'phpdoc_to_return_type' => false,

test/Unit/RuleSet/Php80Test.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,7 @@ protected function expectedRules(): Rules
719719
'phpdoc_to_param_type' => false,
720720
'phpdoc_to_property_type' => [
721721
'scalar_types' => true,
722+
'types_map' => [],
722723
'union_types' => true,
723724
],
724725
'phpdoc_to_return_type' => false,

test/Unit/RuleSet/Php81Test.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,7 @@ protected function expectedRules(): Rules
721721
'phpdoc_to_param_type' => false,
722722
'phpdoc_to_property_type' => [
723723
'scalar_types' => true,
724+
'types_map' => [],
724725
'union_types' => true,
725726
],
726727
'phpdoc_to_return_type' => false,

test/Unit/RuleSet/Php82Test.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,7 @@ protected function expectedRules(): Rules
721721
'phpdoc_to_param_type' => false,
722722
'phpdoc_to_property_type' => [
723723
'scalar_types' => true,
724+
'types_map' => [],
724725
'union_types' => true,
725726
],
726727
'phpdoc_to_return_type' => false,

0 commit comments

Comments
 (0)