Skip to content

Commit

Permalink
Fix: Do not configure nullable_type_declaration_for_default_null_valu…
Browse files Browse the repository at this point in the history
…e fixer using deprecated use_nullable_type_declaration option
  • Loading branch information
localheinz committed Mar 18, 2024
1 parent 8c4fdbe commit b70a579
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 72 deletions.
4 changes: 1 addition & 3 deletions src/RuleSet/Php53.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,7 @@ public static function create(): RuleSet
'not_operator_with_space' => false,
'not_operator_with_successor_space' => false,
'nullable_type_declaration' => false,
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => false,
Expand Down
4 changes: 1 addition & 3 deletions src/RuleSet/Php54.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,7 @@ public static function create(): RuleSet
'not_operator_with_space' => false,
'not_operator_with_successor_space' => false,
'nullable_type_declaration' => false,
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => false,
Expand Down
4 changes: 1 addition & 3 deletions src/RuleSet/Php55.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,7 @@ public static function create(): RuleSet
'not_operator_with_space' => false,
'not_operator_with_successor_space' => false,
'nullable_type_declaration' => false,
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => false,
Expand Down
4 changes: 1 addition & 3 deletions src/RuleSet/Php56.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,7 @@ public static function create(): RuleSet
'not_operator_with_space' => false,
'not_operator_with_successor_space' => false,
'nullable_type_declaration' => false,
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => false,
Expand Down
4 changes: 1 addition & 3 deletions src/RuleSet/Php71.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,7 @@ public static function create(): RuleSet
'not_operator_with_space' => false,
'not_operator_with_successor_space' => false,
'nullable_type_declaration' => false,
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => false,
Expand Down
4 changes: 1 addition & 3 deletions src/RuleSet/Php72.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,7 @@ public static function create(): RuleSet
'not_operator_with_space' => false,
'not_operator_with_successor_space' => false,
'nullable_type_declaration' => false,
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => false,
Expand Down
4 changes: 1 addition & 3 deletions src/RuleSet/Php73.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,7 @@ public static function create(): RuleSet
'not_operator_with_space' => false,
'not_operator_with_successor_space' => false,
'nullable_type_declaration' => false,
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => false,
Expand Down
4 changes: 1 addition & 3 deletions src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,7 @@ public static function create(): RuleSet
'not_operator_with_space' => false,
'not_operator_with_successor_space' => false,
'nullable_type_declaration' => false,
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => false,
Expand Down
4 changes: 1 addition & 3 deletions src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,7 @@ public static function create(): RuleSet
'nullable_type_declaration' => [
'syntax' => 'question_mark',
],
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => false,
Expand Down
4 changes: 1 addition & 3 deletions src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,7 @@ public static function create(): RuleSet
'nullable_type_declaration' => [
'syntax' => 'question_mark',
],
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => true,
Expand Down
4 changes: 1 addition & 3 deletions src/RuleSet/Php82.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,7 @@ public static function create(): RuleSet
'nullable_type_declaration' => [
'syntax' => 'question_mark',
],
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => true,
Expand Down
4 changes: 1 addition & 3 deletions src/RuleSet/Php83.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,7 @@ public static function create(): RuleSet
'nullable_type_declaration' => [
'syntax' => 'question_mark',
],
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => true,
Expand Down
4 changes: 1 addition & 3 deletions test/Unit/RuleSet/Php53Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,7 @@ protected function expectedRules(): Rules
'not_operator_with_space' => false,
'not_operator_with_successor_space' => false,
'nullable_type_declaration' => false,
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => false,
Expand Down
4 changes: 1 addition & 3 deletions test/Unit/RuleSet/Php54Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,7 @@ protected function expectedRules(): Rules
'not_operator_with_space' => false,
'not_operator_with_successor_space' => false,
'nullable_type_declaration' => false,
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => false,
Expand Down
4 changes: 1 addition & 3 deletions test/Unit/RuleSet/Php55Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,7 @@ protected function expectedRules(): Rules
'not_operator_with_space' => false,
'not_operator_with_successor_space' => false,
'nullable_type_declaration' => false,
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => false,
Expand Down
4 changes: 1 addition & 3 deletions test/Unit/RuleSet/Php56Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,7 @@ protected function expectedRules(): Rules
'not_operator_with_space' => false,
'not_operator_with_successor_space' => false,
'nullable_type_declaration' => false,
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => false,
Expand Down
4 changes: 1 addition & 3 deletions test/Unit/RuleSet/Php71Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,7 @@ protected function expectedRules(): Rules
'not_operator_with_space' => false,
'not_operator_with_successor_space' => false,
'nullable_type_declaration' => false,
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => false,
Expand Down
4 changes: 1 addition & 3 deletions test/Unit/RuleSet/Php72Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,7 @@ protected function expectedRules(): Rules
'not_operator_with_space' => false,
'not_operator_with_successor_space' => false,
'nullable_type_declaration' => false,
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => false,
Expand Down
4 changes: 1 addition & 3 deletions test/Unit/RuleSet/Php73Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,7 @@ protected function expectedRules(): Rules
'not_operator_with_space' => false,
'not_operator_with_successor_space' => false,
'nullable_type_declaration' => false,
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => false,
Expand Down
4 changes: 1 addition & 3 deletions test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,7 @@ protected function expectedRules(): Rules
'not_operator_with_space' => false,
'not_operator_with_successor_space' => false,
'nullable_type_declaration' => false,
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => false,
Expand Down
4 changes: 1 addition & 3 deletions test/Unit/RuleSet/Php80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,7 @@ protected function expectedRules(): Rules
'nullable_type_declaration' => [
'syntax' => 'question_mark',
],
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => false,
Expand Down
4 changes: 1 addition & 3 deletions test/Unit/RuleSet/Php81Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,7 @@ protected function expectedRules(): Rules
'nullable_type_declaration' => [
'syntax' => 'question_mark',
],
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => true,
Expand Down
4 changes: 1 addition & 3 deletions test/Unit/RuleSet/Php82Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,7 @@ protected function expectedRules(): Rules
'nullable_type_declaration' => [
'syntax' => 'question_mark',
],
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => true,
Expand Down
4 changes: 1 addition & 3 deletions test/Unit/RuleSet/Php83Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,7 @@ protected function expectedRules(): Rules
'nullable_type_declaration' => [
'syntax' => 'question_mark',
],
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'nullable_type_declaration_for_default_null_value' => true,
'numeric_literal_separator' => false,
'object_operator_without_whitespace' => true,
'octal_notation' => true,
Expand Down

0 comments on commit b70a579

Please sign in to comment.