diff --git a/CHANGELOG.md b/CHANGELOG.md index 710a2f9..3b6c258 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), For a full diff see [`2.2.0...main`][2.2.0...main]. +### Changed + +* Updated `friendsofphp/php-cs-fixer` ([#138]), by [@dependabot] + ## [`2.2.0`][2.2.0] For a full diff see [`2.1.0...2.2.0`][2.1.0...2.2.0]. @@ -128,6 +132,7 @@ For a full diff see [`3a0205c...1.0.0`][3a0205c...1.0.0]. [#130]: https://github.com/hks-systeme/php-cs-fixer-config/pull/130 [#131]: https://github.com/hks-systeme/php-cs-fixer-config/pull/131 [#132]: https://github.com/hks-systeme/php-cs-fixer-config/pull/132 +[#138]: https://github.com/hks-systeme/php-cs-fixer-config/pull/138 [@dependabot]: https://github.com/apps/dependabot [@localheinz]: https://github.com/localheinz diff --git a/composer.json b/composer.json index 912df62..2634796 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ ], "require": { "php": "^7.2 || ^8.0", - "friendsofphp/php-cs-fixer": "~3.1.0" + "friendsofphp/php-cs-fixer": "~3.2.0" }, "require-dev": { "ergebnis/composer-normalize": "^2.15.0", diff --git a/composer.lock b/composer.lock index bbe0587..abfbdb4 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "decf07d76c0b38948d78b9aa3de6c0ed", + "content-hash": "2b4e657eb381bc216ac566b1cfbe90d5", "packages": [ { "name": "composer/semver", @@ -305,16 +305,16 @@ }, { "name": "friendsofphp/php-cs-fixer", - "version": "v3.1.0", + "version": "v3.2.0", "source": { "type": "git", "url": "https://github.com/FriendsOfPHP/PHP-CS-Fixer.git", - "reference": "cf4cedb9e8991c2daa94a756176d81bf487e4c4b" + "reference": "29f37e3356286297c025e6e71778e6da78f808e9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/cf4cedb9e8991c2daa94a756176d81bf487e4c4b", - "reference": "cf4cedb9e8991c2daa94a756176d81bf487e4c4b", + "url": "https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/zipball/29f37e3356286297c025e6e71778e6da78f808e9", + "reference": "29f37e3356286297c025e6e71778e6da78f808e9", "shasum": "" }, "require": { @@ -331,13 +331,14 @@ "symfony/finder": "^4.4.20 || ^5.0", "symfony/options-resolver": "^4.4.20 || ^5.0", "symfony/polyfill-php72": "^1.23", + "symfony/polyfill-php80": "^1.23", "symfony/polyfill-php81": "^1.23", "symfony/process": "^4.4.20 || ^5.0", "symfony/stopwatch": "^4.4.20 || ^5.0" }, "require-dev": { "justinrainbow/json-schema": "^5.2", - "keradus/cli-executor": "^1.4", + "keradus/cli-executor": "^1.5", "mikey179/vfsstream": "^1.6.8", "php-coveralls/php-coveralls": "^2.4.3", "php-cs-fixer/accessible-object": "^1.1", @@ -382,7 +383,7 @@ "description": "A tool to automatically fix PHP code style", "support": { "issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues", - "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.1.0" + "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v3.2.0" }, "funding": [ { @@ -390,7 +391,7 @@ "type": "github" } ], - "time": "2021-08-29T20:16:20+00:00" + "time": "2021-10-05T07:28:14+00:00" }, { "name": "php-cs-fixer/diff", diff --git a/src/RuleSet/Php71.php b/src/RuleSet/Php71.php index 0eff686..dc28b72 100644 --- a/src/RuleSet/Php71.php +++ b/src/RuleSet/Php71.php @@ -25,6 +25,7 @@ final class Php71 extends AbstractRuleSet implements ExplicitRuleSet 'array_syntax' => [ 'syntax' => 'short', ], + 'assign_null_coalescing_to_coalesce_equal' => false, 'backtick_to_shell_exec' => true, 'binary_operator_spaces' => [ 'default' => 'single_space', @@ -88,6 +89,7 @@ final class Php71 extends AbstractRuleSet implements ExplicitRuleSet 'spacing' => 'one', ], 'constant_case' => true, + 'control_structure_continuation_position' => false, 'date_time_immutable' => false, 'declare_equal_normalize' => true, 'declare_parentheses' => true, @@ -122,6 +124,7 @@ final class Php71 extends AbstractRuleSet implements ExplicitRuleSet 'empty_loop_body' => [ 'style' => 'braces', ], + 'empty_loop_condition' => false, 'encoding' => true, 'ereg_to_preg' => true, 'error_suppression' => true, @@ -170,6 +173,7 @@ final class Php71 extends AbstractRuleSet implements ExplicitRuleSet 'style' => 'pre', ], 'indentation_type' => true, + 'integer_literal_case' => false, 'is_null' => true, 'lambda_not_used_import' => true, 'line_ending' => true, @@ -190,6 +194,7 @@ final class Php71 extends AbstractRuleSet implements ExplicitRuleSet 'on_multiline' => 'ensure_fully_multiline', ], 'method_chaining_indentation' => true, + 'modernize_strpos' => false, 'modernize_types_casting' => true, 'multiline_comment_opening_closing' => true, 'multiline_whitespace_before_semicolons' => [ @@ -257,6 +262,7 @@ final class Php71 extends AbstractRuleSet implements ExplicitRuleSet 'no_php4_constructor' => false, 'no_short_bool_cast' => true, 'no_singleline_whitespace_before_semicolons' => true, + 'no_space_around_double_colon' => false, 'no_spaces_after_function_name' => true, 'no_spaces_around_offset' => true, 'no_spaces_inside_parenthesis' => true, @@ -291,6 +297,7 @@ final class Php71 extends AbstractRuleSet implements ExplicitRuleSet 'not_operator_with_successor_space' => false, 'nullable_type_declaration_for_default_null_value' => true, 'object_operator_without_whitespace' => true, + 'octal_notation' => false, 'operator_linebreak' => [ 'only_booleans' => true, 'position' => 'beginning', @@ -549,6 +556,7 @@ final class Php71 extends AbstractRuleSet implements ExplicitRuleSet 'static_lambda' => true, 'strict_comparison' => false, 'strict_param' => false, + 'string_length_to_empty' => false, 'string_line_ending' => true, 'switch_case_semicolon_to_colon' => true, 'switch_case_space' => true, diff --git a/src/RuleSet/Php72.php b/src/RuleSet/Php72.php index b9f5ab1..88613be 100644 --- a/src/RuleSet/Php72.php +++ b/src/RuleSet/Php72.php @@ -25,6 +25,7 @@ final class Php72 extends AbstractRuleSet implements ExplicitRuleSet 'array_syntax' => [ 'syntax' => 'short', ], + 'assign_null_coalescing_to_coalesce_equal' => false, 'backtick_to_shell_exec' => true, 'binary_operator_spaces' => [ 'default' => 'single_space', @@ -88,6 +89,7 @@ final class Php72 extends AbstractRuleSet implements ExplicitRuleSet 'spacing' => 'one', ], 'constant_case' => true, + 'control_structure_continuation_position' => false, 'date_time_immutable' => false, 'declare_equal_normalize' => true, 'declare_parentheses' => true, @@ -122,6 +124,7 @@ final class Php72 extends AbstractRuleSet implements ExplicitRuleSet 'empty_loop_body' => [ 'style' => 'braces', ], + 'empty_loop_condition' => false, 'encoding' => true, 'ereg_to_preg' => true, 'error_suppression' => true, @@ -170,6 +173,7 @@ final class Php72 extends AbstractRuleSet implements ExplicitRuleSet 'style' => 'pre', ], 'indentation_type' => true, + 'integer_literal_case' => false, 'is_null' => true, 'lambda_not_used_import' => true, 'line_ending' => true, @@ -190,6 +194,7 @@ final class Php72 extends AbstractRuleSet implements ExplicitRuleSet 'on_multiline' => 'ensure_fully_multiline', ], 'method_chaining_indentation' => true, + 'modernize_strpos' => false, 'modernize_types_casting' => true, 'multiline_comment_opening_closing' => true, 'multiline_whitespace_before_semicolons' => [ @@ -257,6 +262,7 @@ final class Php72 extends AbstractRuleSet implements ExplicitRuleSet 'no_php4_constructor' => false, 'no_short_bool_cast' => true, 'no_singleline_whitespace_before_semicolons' => true, + 'no_space_around_double_colon' => false, 'no_spaces_after_function_name' => true, 'no_spaces_around_offset' => true, 'no_spaces_inside_parenthesis' => true, @@ -291,6 +297,7 @@ final class Php72 extends AbstractRuleSet implements ExplicitRuleSet 'not_operator_with_successor_space' => false, 'nullable_type_declaration_for_default_null_value' => true, 'object_operator_without_whitespace' => true, + 'octal_notation' => false, 'operator_linebreak' => [ 'only_booleans' => true, 'position' => 'beginning', @@ -549,6 +556,7 @@ final class Php72 extends AbstractRuleSet implements ExplicitRuleSet 'static_lambda' => true, 'strict_comparison' => false, 'strict_param' => false, + 'string_length_to_empty' => false, 'string_line_ending' => true, 'switch_case_semicolon_to_colon' => true, 'switch_case_space' => true, diff --git a/src/RuleSet/Php73.php b/src/RuleSet/Php73.php index c0147b6..1a250b5 100644 --- a/src/RuleSet/Php73.php +++ b/src/RuleSet/Php73.php @@ -25,6 +25,7 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet 'array_syntax' => [ 'syntax' => 'short', ], + 'assign_null_coalescing_to_coalesce_equal' => false, 'backtick_to_shell_exec' => true, 'binary_operator_spaces' => [ 'default' => 'single_space', @@ -88,6 +89,7 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet 'spacing' => 'one', ], 'constant_case' => true, + 'control_structure_continuation_position' => false, 'date_time_immutable' => false, 'declare_equal_normalize' => true, 'declare_parentheses' => true, @@ -122,6 +124,7 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet 'empty_loop_body' => [ 'style' => 'braces', ], + 'empty_loop_condition' => false, 'encoding' => true, 'ereg_to_preg' => true, 'error_suppression' => true, @@ -170,6 +173,7 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet 'style' => 'pre', ], 'indentation_type' => true, + 'integer_literal_case' => false, 'is_null' => true, 'lambda_not_used_import' => true, 'line_ending' => true, @@ -190,6 +194,7 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet 'on_multiline' => 'ensure_fully_multiline', ], 'method_chaining_indentation' => true, + 'modernize_strpos' => false, 'modernize_types_casting' => true, 'multiline_comment_opening_closing' => true, 'multiline_whitespace_before_semicolons' => [ @@ -257,6 +262,7 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet 'no_php4_constructor' => false, 'no_short_bool_cast' => true, 'no_singleline_whitespace_before_semicolons' => true, + 'no_space_around_double_colon' => false, 'no_spaces_after_function_name' => true, 'no_spaces_around_offset' => true, 'no_spaces_inside_parenthesis' => true, @@ -293,6 +299,7 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet 'not_operator_with_successor_space' => false, 'nullable_type_declaration_for_default_null_value' => true, 'object_operator_without_whitespace' => true, + 'octal_notation' => false, 'operator_linebreak' => [ 'only_booleans' => true, 'position' => 'beginning', @@ -551,6 +558,7 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet 'static_lambda' => true, 'strict_comparison' => false, 'strict_param' => false, + 'string_length_to_empty' => false, 'string_line_ending' => true, 'switch_case_semicolon_to_colon' => true, 'switch_case_space' => true, diff --git a/src/RuleSet/Php74.php b/src/RuleSet/Php74.php index d6b8501..c4267ab 100644 --- a/src/RuleSet/Php74.php +++ b/src/RuleSet/Php74.php @@ -25,6 +25,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet 'array_syntax' => [ 'syntax' => 'short', ], + 'assign_null_coalescing_to_coalesce_equal' => false, 'backtick_to_shell_exec' => true, 'binary_operator_spaces' => [ 'default' => 'single_space', @@ -88,6 +89,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet 'spacing' => 'one', ], 'constant_case' => true, + 'control_structure_continuation_position' => false, 'date_time_immutable' => false, 'declare_equal_normalize' => true, 'declare_parentheses' => true, @@ -122,6 +124,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet 'empty_loop_body' => [ 'style' => 'braces', ], + 'empty_loop_condition' => false, 'encoding' => true, 'ereg_to_preg' => true, 'error_suppression' => true, @@ -170,6 +173,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet 'style' => 'pre', ], 'indentation_type' => true, + 'integer_literal_case' => false, 'is_null' => true, 'lambda_not_used_import' => true, 'line_ending' => true, @@ -190,6 +194,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet 'on_multiline' => 'ensure_fully_multiline', ], 'method_chaining_indentation' => true, + 'modernize_strpos' => false, 'modernize_types_casting' => true, 'multiline_comment_opening_closing' => true, 'multiline_whitespace_before_semicolons' => [ @@ -257,6 +262,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet 'no_php4_constructor' => false, 'no_short_bool_cast' => true, 'no_singleline_whitespace_before_semicolons' => true, + 'no_space_around_double_colon' => false, 'no_spaces_after_function_name' => true, 'no_spaces_around_offset' => true, 'no_spaces_inside_parenthesis' => true, @@ -293,6 +299,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet 'not_operator_with_successor_space' => false, 'nullable_type_declaration_for_default_null_value' => true, 'object_operator_without_whitespace' => true, + 'octal_notation' => false, 'operator_linebreak' => [ 'only_booleans' => true, 'position' => 'beginning', @@ -551,6 +558,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet 'static_lambda' => true, 'strict_comparison' => false, 'strict_param' => false, + 'string_length_to_empty' => false, 'string_line_ending' => true, 'switch_case_semicolon_to_colon' => true, 'switch_case_space' => true, @@ -563,6 +571,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet 'elements' => [ 'arguments', 'arrays', + 'parameters', ], ], 'trim_array_spaces' => true, diff --git a/src/RuleSet/Php80.php b/src/RuleSet/Php80.php index fe94f32..f87da0f 100644 --- a/src/RuleSet/Php80.php +++ b/src/RuleSet/Php80.php @@ -25,6 +25,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet 'array_syntax' => [ 'syntax' => 'short', ], + 'assign_null_coalescing_to_coalesce_equal' => false, 'backtick_to_shell_exec' => true, 'binary_operator_spaces' => [ 'default' => 'single_space', @@ -88,6 +89,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet 'spacing' => 'one', ], 'constant_case' => true, + 'control_structure_continuation_position' => false, 'date_time_immutable' => false, 'declare_equal_normalize' => true, 'declare_parentheses' => true, @@ -122,6 +124,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet 'empty_loop_body' => [ 'style' => 'braces', ], + 'empty_loop_condition' => false, 'encoding' => true, 'ereg_to_preg' => true, 'error_suppression' => true, @@ -170,6 +173,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet 'style' => 'pre', ], 'indentation_type' => true, + 'integer_literal_case' => false, 'is_null' => true, 'lambda_not_used_import' => true, 'line_ending' => true, @@ -190,6 +194,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet 'on_multiline' => 'ensure_fully_multiline', ], 'method_chaining_indentation' => true, + 'modernize_strpos' => false, 'modernize_types_casting' => true, 'multiline_comment_opening_closing' => true, 'multiline_whitespace_before_semicolons' => [ @@ -257,6 +262,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet 'no_php4_constructor' => false, 'no_short_bool_cast' => true, 'no_singleline_whitespace_before_semicolons' => true, + 'no_space_around_double_colon' => false, 'no_spaces_after_function_name' => true, 'no_spaces_around_offset' => true, 'no_spaces_inside_parenthesis' => true, @@ -293,6 +299,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet 'not_operator_with_successor_space' => false, 'nullable_type_declaration_for_default_null_value' => true, 'object_operator_without_whitespace' => true, + 'octal_notation' => false, 'operator_linebreak' => [ 'only_booleans' => true, 'position' => 'beginning', @@ -551,6 +558,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet 'static_lambda' => true, 'strict_comparison' => false, 'strict_param' => false, + 'string_length_to_empty' => false, 'string_line_ending' => true, 'switch_case_semicolon_to_colon' => true, 'switch_case_space' => true, diff --git a/test/Unit/RuleSet/Php71Test.php b/test/Unit/RuleSet/Php71Test.php index 9b1204e..a417029 100644 --- a/test/Unit/RuleSet/Php71Test.php +++ b/test/Unit/RuleSet/Php71Test.php @@ -31,6 +31,7 @@ final class Php71Test extends ExplicitRuleSetTestCase 'array_syntax' => [ 'syntax' => 'short', ], + 'assign_null_coalescing_to_coalesce_equal' => false, 'backtick_to_shell_exec' => true, 'binary_operator_spaces' => [ 'default' => 'single_space', @@ -94,6 +95,7 @@ final class Php71Test extends ExplicitRuleSetTestCase 'spacing' => 'one', ], 'constant_case' => true, + 'control_structure_continuation_position' => false, 'date_time_immutable' => false, 'declare_equal_normalize' => true, 'declare_parentheses' => true, @@ -128,6 +130,7 @@ final class Php71Test extends ExplicitRuleSetTestCase 'empty_loop_body' => [ 'style' => 'braces', ], + 'empty_loop_condition' => false, 'encoding' => true, 'ereg_to_preg' => true, 'error_suppression' => true, @@ -176,6 +179,7 @@ final class Php71Test extends ExplicitRuleSetTestCase 'style' => 'pre', ], 'indentation_type' => true, + 'integer_literal_case' => false, 'is_null' => true, 'lambda_not_used_import' => true, 'line_ending' => true, @@ -196,6 +200,7 @@ final class Php71Test extends ExplicitRuleSetTestCase 'on_multiline' => 'ensure_fully_multiline', ], 'method_chaining_indentation' => true, + 'modernize_strpos' => false, 'modernize_types_casting' => true, 'multiline_comment_opening_closing' => true, 'multiline_whitespace_before_semicolons' => [ @@ -263,6 +268,7 @@ final class Php71Test extends ExplicitRuleSetTestCase 'no_php4_constructor' => false, 'no_short_bool_cast' => true, 'no_singleline_whitespace_before_semicolons' => true, + 'no_space_around_double_colon' => false, 'no_spaces_after_function_name' => true, 'no_spaces_around_offset' => true, 'no_spaces_inside_parenthesis' => true, @@ -297,6 +303,7 @@ final class Php71Test extends ExplicitRuleSetTestCase 'not_operator_with_successor_space' => false, 'nullable_type_declaration_for_default_null_value' => true, 'object_operator_without_whitespace' => true, + 'octal_notation' => false, 'operator_linebreak' => [ 'only_booleans' => true, 'position' => 'beginning', @@ -555,6 +562,7 @@ final class Php71Test extends ExplicitRuleSetTestCase 'static_lambda' => true, 'strict_comparison' => false, 'strict_param' => false, + 'string_length_to_empty' => false, 'string_line_ending' => true, 'switch_case_semicolon_to_colon' => true, 'switch_case_space' => true, diff --git a/test/Unit/RuleSet/Php72Test.php b/test/Unit/RuleSet/Php72Test.php index 8c50671..41d8d44 100644 --- a/test/Unit/RuleSet/Php72Test.php +++ b/test/Unit/RuleSet/Php72Test.php @@ -31,6 +31,7 @@ final class Php72Test extends ExplicitRuleSetTestCase 'array_syntax' => [ 'syntax' => 'short', ], + 'assign_null_coalescing_to_coalesce_equal' => false, 'backtick_to_shell_exec' => true, 'binary_operator_spaces' => [ 'default' => 'single_space', @@ -94,6 +95,7 @@ final class Php72Test extends ExplicitRuleSetTestCase 'spacing' => 'one', ], 'constant_case' => true, + 'control_structure_continuation_position' => false, 'date_time_immutable' => false, 'declare_equal_normalize' => true, 'declare_parentheses' => true, @@ -128,6 +130,7 @@ final class Php72Test extends ExplicitRuleSetTestCase 'empty_loop_body' => [ 'style' => 'braces', ], + 'empty_loop_condition' => false, 'encoding' => true, 'ereg_to_preg' => true, 'error_suppression' => true, @@ -176,6 +179,7 @@ final class Php72Test extends ExplicitRuleSetTestCase 'style' => 'pre', ], 'indentation_type' => true, + 'integer_literal_case' => false, 'is_null' => true, 'lambda_not_used_import' => true, 'line_ending' => true, @@ -196,6 +200,7 @@ final class Php72Test extends ExplicitRuleSetTestCase 'on_multiline' => 'ensure_fully_multiline', ], 'method_chaining_indentation' => true, + 'modernize_strpos' => false, 'modernize_types_casting' => true, 'multiline_comment_opening_closing' => true, 'multiline_whitespace_before_semicolons' => [ @@ -263,6 +268,7 @@ final class Php72Test extends ExplicitRuleSetTestCase 'no_php4_constructor' => false, 'no_short_bool_cast' => true, 'no_singleline_whitespace_before_semicolons' => true, + 'no_space_around_double_colon' => false, 'no_spaces_after_function_name' => true, 'no_spaces_around_offset' => true, 'no_spaces_inside_parenthesis' => true, @@ -297,6 +303,7 @@ final class Php72Test extends ExplicitRuleSetTestCase 'not_operator_with_successor_space' => false, 'nullable_type_declaration_for_default_null_value' => true, 'object_operator_without_whitespace' => true, + 'octal_notation' => false, 'operator_linebreak' => [ 'only_booleans' => true, 'position' => 'beginning', @@ -555,6 +562,7 @@ final class Php72Test extends ExplicitRuleSetTestCase 'static_lambda' => true, 'strict_comparison' => false, 'strict_param' => false, + 'string_length_to_empty' => false, 'string_line_ending' => true, 'switch_case_semicolon_to_colon' => true, 'switch_case_space' => true, diff --git a/test/Unit/RuleSet/Php73Test.php b/test/Unit/RuleSet/Php73Test.php index a38bc67..5ba2d83 100644 --- a/test/Unit/RuleSet/Php73Test.php +++ b/test/Unit/RuleSet/Php73Test.php @@ -31,6 +31,7 @@ final class Php73Test extends ExplicitRuleSetTestCase 'array_syntax' => [ 'syntax' => 'short', ], + 'assign_null_coalescing_to_coalesce_equal' => false, 'backtick_to_shell_exec' => true, 'binary_operator_spaces' => [ 'default' => 'single_space', @@ -94,6 +95,7 @@ final class Php73Test extends ExplicitRuleSetTestCase 'spacing' => 'one', ], 'constant_case' => true, + 'control_structure_continuation_position' => false, 'date_time_immutable' => false, 'declare_equal_normalize' => true, 'declare_parentheses' => true, @@ -128,6 +130,7 @@ final class Php73Test extends ExplicitRuleSetTestCase 'empty_loop_body' => [ 'style' => 'braces', ], + 'empty_loop_condition' => false, 'encoding' => true, 'ereg_to_preg' => true, 'error_suppression' => true, @@ -176,6 +179,7 @@ final class Php73Test extends ExplicitRuleSetTestCase 'style' => 'pre', ], 'indentation_type' => true, + 'integer_literal_case' => false, 'is_null' => true, 'lambda_not_used_import' => true, 'line_ending' => true, @@ -196,6 +200,7 @@ final class Php73Test extends ExplicitRuleSetTestCase 'on_multiline' => 'ensure_fully_multiline', ], 'method_chaining_indentation' => true, + 'modernize_strpos' => false, 'modernize_types_casting' => true, 'multiline_comment_opening_closing' => true, 'multiline_whitespace_before_semicolons' => [ @@ -263,6 +268,7 @@ final class Php73Test extends ExplicitRuleSetTestCase 'no_php4_constructor' => false, 'no_short_bool_cast' => true, 'no_singleline_whitespace_before_semicolons' => true, + 'no_space_around_double_colon' => false, 'no_spaces_after_function_name' => true, 'no_spaces_around_offset' => true, 'no_spaces_inside_parenthesis' => true, @@ -299,6 +305,7 @@ final class Php73Test extends ExplicitRuleSetTestCase 'not_operator_with_successor_space' => false, 'nullable_type_declaration_for_default_null_value' => true, 'object_operator_without_whitespace' => true, + 'octal_notation' => false, 'operator_linebreak' => [ 'only_booleans' => true, 'position' => 'beginning', @@ -557,6 +564,7 @@ final class Php73Test extends ExplicitRuleSetTestCase 'static_lambda' => true, 'strict_comparison' => false, 'strict_param' => false, + 'string_length_to_empty' => false, 'string_line_ending' => true, 'switch_case_semicolon_to_colon' => true, 'switch_case_space' => true, diff --git a/test/Unit/RuleSet/Php74Test.php b/test/Unit/RuleSet/Php74Test.php index 578195c..e097b3f 100644 --- a/test/Unit/RuleSet/Php74Test.php +++ b/test/Unit/RuleSet/Php74Test.php @@ -31,6 +31,7 @@ final class Php74Test extends ExplicitRuleSetTestCase 'array_syntax' => [ 'syntax' => 'short', ], + 'assign_null_coalescing_to_coalesce_equal' => false, 'backtick_to_shell_exec' => true, 'binary_operator_spaces' => [ 'default' => 'single_space', @@ -94,6 +95,7 @@ final class Php74Test extends ExplicitRuleSetTestCase 'spacing' => 'one', ], 'constant_case' => true, + 'control_structure_continuation_position' => false, 'date_time_immutable' => false, 'declare_equal_normalize' => true, 'declare_parentheses' => true, @@ -128,6 +130,7 @@ final class Php74Test extends ExplicitRuleSetTestCase 'empty_loop_body' => [ 'style' => 'braces', ], + 'empty_loop_condition' => false, 'encoding' => true, 'ereg_to_preg' => true, 'error_suppression' => true, @@ -176,6 +179,7 @@ final class Php74Test extends ExplicitRuleSetTestCase 'style' => 'pre', ], 'indentation_type' => true, + 'integer_literal_case' => false, 'is_null' => true, 'lambda_not_used_import' => true, 'line_ending' => true, @@ -196,6 +200,7 @@ final class Php74Test extends ExplicitRuleSetTestCase 'on_multiline' => 'ensure_fully_multiline', ], 'method_chaining_indentation' => true, + 'modernize_strpos' => false, 'modernize_types_casting' => true, 'multiline_comment_opening_closing' => true, 'multiline_whitespace_before_semicolons' => [ @@ -263,6 +268,7 @@ final class Php74Test extends ExplicitRuleSetTestCase 'no_php4_constructor' => false, 'no_short_bool_cast' => true, 'no_singleline_whitespace_before_semicolons' => true, + 'no_space_around_double_colon' => false, 'no_spaces_after_function_name' => true, 'no_spaces_around_offset' => true, 'no_spaces_inside_parenthesis' => true, @@ -299,6 +305,7 @@ final class Php74Test extends ExplicitRuleSetTestCase 'not_operator_with_successor_space' => false, 'nullable_type_declaration_for_default_null_value' => true, 'object_operator_without_whitespace' => true, + 'octal_notation' => false, 'operator_linebreak' => [ 'only_booleans' => true, 'position' => 'beginning', @@ -557,6 +564,7 @@ final class Php74Test extends ExplicitRuleSetTestCase 'static_lambda' => true, 'strict_comparison' => false, 'strict_param' => false, + 'string_length_to_empty' => false, 'string_line_ending' => true, 'switch_case_semicolon_to_colon' => true, 'switch_case_space' => true, @@ -569,6 +577,7 @@ final class Php74Test extends ExplicitRuleSetTestCase 'elements' => [ 'arguments', 'arrays', + 'parameters', ], ], 'trim_array_spaces' => true, diff --git a/test/Unit/RuleSet/Php80Test.php b/test/Unit/RuleSet/Php80Test.php index 70acfd1..0edce6d 100644 --- a/test/Unit/RuleSet/Php80Test.php +++ b/test/Unit/RuleSet/Php80Test.php @@ -31,6 +31,7 @@ final class Php80Test extends ExplicitRuleSetTestCase 'array_syntax' => [ 'syntax' => 'short', ], + 'assign_null_coalescing_to_coalesce_equal' => false, 'backtick_to_shell_exec' => true, 'binary_operator_spaces' => [ 'default' => 'single_space', @@ -94,6 +95,7 @@ final class Php80Test extends ExplicitRuleSetTestCase 'spacing' => 'one', ], 'constant_case' => true, + 'control_structure_continuation_position' => false, 'date_time_immutable' => false, 'declare_equal_normalize' => true, 'declare_parentheses' => true, @@ -128,6 +130,7 @@ final class Php80Test extends ExplicitRuleSetTestCase 'empty_loop_body' => [ 'style' => 'braces', ], + 'empty_loop_condition' => false, 'encoding' => true, 'ereg_to_preg' => true, 'error_suppression' => true, @@ -176,6 +179,7 @@ final class Php80Test extends ExplicitRuleSetTestCase 'style' => 'pre', ], 'indentation_type' => true, + 'integer_literal_case' => false, 'is_null' => true, 'lambda_not_used_import' => true, 'line_ending' => true, @@ -196,6 +200,7 @@ final class Php80Test extends ExplicitRuleSetTestCase 'on_multiline' => 'ensure_fully_multiline', ], 'method_chaining_indentation' => true, + 'modernize_strpos' => false, 'modernize_types_casting' => true, 'multiline_comment_opening_closing' => true, 'multiline_whitespace_before_semicolons' => [ @@ -263,6 +268,7 @@ final class Php80Test extends ExplicitRuleSetTestCase 'no_php4_constructor' => false, 'no_short_bool_cast' => true, 'no_singleline_whitespace_before_semicolons' => true, + 'no_space_around_double_colon' => false, 'no_spaces_after_function_name' => true, 'no_spaces_around_offset' => true, 'no_spaces_inside_parenthesis' => true, @@ -299,6 +305,7 @@ final class Php80Test extends ExplicitRuleSetTestCase 'not_operator_with_successor_space' => false, 'nullable_type_declaration_for_default_null_value' => true, 'object_operator_without_whitespace' => true, + 'octal_notation' => false, 'operator_linebreak' => [ 'only_booleans' => true, 'position' => 'beginning', @@ -557,6 +564,7 @@ final class Php80Test extends ExplicitRuleSetTestCase 'static_lambda' => true, 'strict_comparison' => false, 'strict_param' => false, + 'string_length_to_empty' => false, 'string_line_ending' => true, 'switch_case_semicolon_to_colon' => true, 'switch_case_space' => true,