From 06458810716081359fc5d5a944ec4225464b8168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Thu, 22 Aug 2019 19:49:45 +0200 Subject: [PATCH] Fix: Drop support for PHP 7.0 --- .php_cs | 2 +- .travis.yml | 22 +- README.md | 1 - composer.json | 2 +- composer.lock | 4 +- src/RuleSet/Php70.php | 320 ----------------- test/Unit/FactoryTest.php | 8 +- test/Unit/RuleSet/AbstractRuleSetTestCase.php | 18 +- test/Unit/RuleSet/Php70Test.php | 326 ------------------ 9 files changed, 19 insertions(+), 684 deletions(-) delete mode 100644 src/RuleSet/Php70.php delete mode 100644 test/Unit/RuleSet/Php70Test.php diff --git a/.php_cs b/.php_cs index 3011fe0..8348eed 100644 --- a/.php_cs +++ b/.php_cs @@ -22,7 +22,7 @@ the LICENSE file that was distributed with this source code. @see https://github.com/localheinz/php-cs-fixer-config EOF; -$config = Config\Factory::fromRuleSet(new Config\RuleSet\Php70($header)); +$config = Config\Factory::fromRuleSet(new Config\RuleSet\Php71($header)); $config->getFinder() ->ignoreDotFiles(false) diff --git a/.travis.yml b/.travis.yml index 4597cbb..df792ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,7 @@ jobs: include: - stage: Style - php: 7.0 + php: 7.1 before_install: - source .travis/xdebug.sh @@ -38,7 +38,7 @@ jobs: stage: Test - php: 7.0 + php: 7.1 env: WITH_LOWEST=true @@ -61,24 +61,6 @@ jobs: after_success: - if [[ "$WITH_COVERAGE" == "true" ]]; then bash <(curl -s https://codecov.io/bash); fi - - <<: *TEST - - php: 7.0 - - env: WITH_LOCKED=true - - - <<: *TEST - - php: 7.0 - - env: WITH_HIGHEST=true - - - <<: *TEST - - php: 7.1 - - env: WITH_LOWEST=true - - <<: *TEST php: 7.1 diff --git a/README.md b/README.md index f4ef703..49491eb 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,6 @@ $ composer require --dev localheinz/php-cs-fixer-config Pick one of the rule sets: -* `Localheinz\PhpCsFixer\RuleSet\Php70` * `Localheinz\PhpCsFixer\RuleSet\Php71` * `Localheinz\PhpCsFixer\RuleSet\Php73` diff --git a/composer.json b/composer.json index 44a62ca..316ce76 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ } ], "require": { - "php": "^7.0", + "php": "^7.1", "friendsofphp/php-cs-fixer": "~2.15.1" }, "require-dev": { diff --git a/composer.lock b/composer.lock index d494ffa..a34c566 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": "27890b1684f8923b3ec7f87ac55035a9", + "content-hash": "e1a30f76d9c1397d8f2e755b13e0977c", "packages": [ { "name": "composer/semver", @@ -2654,7 +2654,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "^7.0" + "php": "^7.1" }, "platform-dev": [] } diff --git a/src/RuleSet/Php70.php b/src/RuleSet/Php70.php deleted file mode 100644 index 92bc368..0000000 --- a/src/RuleSet/Php70.php +++ /dev/null @@ -1,320 +0,0 @@ - true, - 'align_multiline_comment' => [ - 'comment_type' => 'all_multiline', - ], - 'array_indentation' => true, - 'array_syntax' => [ - 'syntax' => 'short', - ], - 'backtick_to_shell_exec' => true, - 'binary_operator_spaces' => [ - 'default' => 'single_space', - ], - 'blank_line_after_opening_tag' => true, - 'blank_line_before_return' => false, - 'blank_line_before_statement' => [ - 'statements' => [ - 'break', - 'continue', - 'declare', - 'default', - 'die', - 'do', - 'exit', - 'for', - 'foreach', - 'goto', - 'if', - 'include', - 'include_once', - 'require', - 'require_once', - 'return', - 'switch', - 'throw', - 'try', - 'while', - 'yield', - ], - ], - 'cast_spaces' => true, - 'class_attributes_separation' => [ - 'elements' => [ - 'method', - 'property', - ], - ], - 'class_keyword_remove' => false, - 'combine_consecutive_issets' => true, - 'combine_consecutive_unsets' => true, - 'combine_nested_dirname' => true, - 'comment_to_phpdoc' => true, - 'compact_nullable_typehint' => false, - 'concat_space' => [ - 'spacing' => 'one', - ], - 'date_time_immutable' => true, - 'declare_equal_normalize' => true, - 'declare_strict_types' => true, - 'dir_constant' => true, - 'doctrine_annotation_array_assignment' => [ - 'operator' => ':', - ], - 'doctrine_annotation_braces' => [ - 'syntax' => 'without_braces', - ], - 'doctrine_annotation_indentation' => true, - 'doctrine_annotation_spaces' => [ - 'after_argument_assignments' => false, - 'after_array_assignments_colon' => true, - 'after_array_assignments_equals' => false, - 'around_parentheses' => true, - 'before_argument_assignments' => false, - 'before_array_assignments_colon' => false, - 'before_array_assignments_equals' => false, - ], - 'ereg_to_preg' => true, - 'error_suppression' => [ - 'mute_deprecation_error' => true, - 'noise_remaining_usages' => true, - ], - 'escape_implicit_backslashes' => true, - 'explicit_indirect_variable' => true, - 'explicit_string_variable' => true, - 'final_class' => true, - 'final_internal_class' => true, - 'fopen_flag_order' => true, - 'fopen_flags' => true, - 'fully_qualified_strict_types' => true, - 'function_to_constant' => true, - 'function_typehint_space' => true, - 'general_phpdoc_annotation_remove' => false, - 'hash_to_slash_comment' => true, - 'header_comment' => false, - 'heredoc_indentation' => false, - 'heredoc_to_nowdoc' => true, - 'implode_call' => true, - 'include' => true, - 'increment_style' => [ - 'style' => 'pre', - ], - 'is_null' => true, - 'linebreak_after_opening_tag' => true, - 'list_syntax' => false, - 'logical_operators' => true, - 'lowercase_cast' => true, - 'lowercase_static_reference' => true, - 'magic_constant_casing' => true, - 'magic_method_casing' => true, - 'mb_str_functions' => true, - 'method_argument_space' => [ - 'ensure_fully_multiline' => true, - 'keep_multiple_spaces_after_comma' => false, - ], - 'method_chaining_indentation' => true, - 'method_separation' => true, - 'modernize_types_casting' => true, - 'multiline_comment_opening_closing' => true, - 'multiline_whitespace_before_semicolons' => [ - 'strategy' => 'no_multi_line', - ], - 'native_constant_invocation' => true, - 'native_function_casing' => true, - 'native_function_invocation' => true, - 'native_function_type_declaration_casing' => true, - 'new_with_braces' => true, - 'no_alias_functions' => true, - 'no_alternative_syntax' => true, - 'no_binary_string' => true, - 'no_blank_lines_after_class_opening' => true, - 'no_blank_lines_after_phpdoc' => true, - 'no_blank_lines_before_namespace' => false, - 'no_empty_comment' => true, - 'no_empty_phpdoc' => true, - 'no_empty_statement' => true, - 'no_extra_blank_lines' => [ - 'tokens' => [ - 'break', - 'case', - 'continue', - 'curly_brace_block', - 'default', - 'extra', - 'parenthesis_brace_block', - 'return', - 'square_brace_block', - 'switch', - 'throw', - 'use', - 'use_trait', - ], - ], - 'no_extra_consecutive_blank_lines' => false, - 'no_homoglyph_names' => true, - 'no_leading_import_slash' => true, - 'no_leading_namespace_whitespace' => true, - 'no_mixed_echo_print' => [ - 'use' => 'echo', - ], - 'no_multiline_whitespace_around_double_arrow' => true, - 'no_multiline_whitespace_before_semicolons' => false, - 'no_null_property_initialization' => true, - 'no_php4_constructor' => false, - 'no_short_bool_cast' => true, - 'no_short_echo_tag' => true, - 'no_singleline_whitespace_before_semicolons' => true, - 'no_spaces_around_offset' => true, - 'no_superfluous_elseif' => true, - 'no_superfluous_phpdoc_tags' => false, - 'no_trailing_comma_in_list_call' => true, - 'no_trailing_comma_in_singleline_array' => true, - 'no_unneeded_control_parentheses' => true, - 'no_unneeded_curly_braces' => true, - 'no_unneeded_final_method' => true, - 'no_unreachable_default_argument_value' => true, - 'no_unset_cast' => true, - 'no_unset_on_property' => true, - 'no_unused_imports' => true, - 'no_useless_else' => true, - 'no_useless_return' => true, - 'no_whitespace_before_comma_in_array' => true, - 'no_whitespace_in_blank_line' => true, - 'non_printable_character' => true, - 'normalize_index_brace' => true, - 'not_operator_with_space' => false, - 'not_operator_with_successor_space' => false, - 'object_operator_without_whitespace' => true, - 'ordered_class_elements' => true, - 'ordered_imports' => true, - 'ordered_interfaces' => true, - 'php_unit_construct' => true, - 'php_unit_dedicate_assert' => true, - 'php_unit_dedicate_assert_internal_type' => false, - 'php_unit_expectation' => [ - 'target' => 'newest', - ], - 'php_unit_fqcn_annotation' => true, - 'php_unit_internal_class' => [ - 'types' => [ - 'abstract', - 'final', - 'normal', - ], - ], - 'php_unit_method_casing' => true, - 'php_unit_mock' => true, - 'php_unit_mock_short_will_return' => true, - 'php_unit_namespaced' => [ - 'target' => 'newest', - ], - 'php_unit_no_expectation_annotation' => [ - 'target' => 'newest', - 'use_class_const' => true, - ], - 'php_unit_ordered_covers' => true, - 'php_unit_set_up_tear_down_visibility' => true, - 'php_unit_size_class' => false, - 'php_unit_strict' => false, - 'php_unit_test_annotation' => true, - 'php_unit_test_case_static_method_calls' => [ - 'call_type' => 'self', - ], - 'php_unit_test_class_requires_covers' => true, - 'phpdoc_add_missing_param_annotation' => [ - 'only_untyped' => false, - ], - 'phpdoc_align' => true, - 'phpdoc_annotation_without_dot' => true, - 'phpdoc_indent' => true, - 'phpdoc_inline_tag' => true, - 'phpdoc_no_access' => true, - 'phpdoc_no_alias_tag' => true, - 'phpdoc_no_empty_return' => true, - 'phpdoc_no_package' => true, - 'phpdoc_no_useless_inheritdoc' => true, - 'phpdoc_order' => true, - 'phpdoc_return_self_reference' => true, - 'phpdoc_scalar' => true, - 'phpdoc_separation' => true, - 'phpdoc_single_line_var_spacing' => true, - 'phpdoc_summary' => true, - 'phpdoc_to_comment' => false, - 'phpdoc_to_return_type' => false, - 'phpdoc_trim' => true, - 'phpdoc_trim_consecutive_blank_line_separation' => true, - 'phpdoc_types' => true, - 'phpdoc_types_order' => [ - 'null_adjustment' => 'always_first', - 'sort_algorithm' => 'alpha', - ], - 'phpdoc_var_annotation_correct_order' => true, - 'phpdoc_var_without_name' => true, - 'pow_to_exponentiation' => true, - 'pre_increment' => false, - 'protected_to_private' => true, - 'psr0' => false, - 'psr4' => true, - 'random_api_migration' => true, - 'return_assignment' => true, - 'return_type_declaration' => true, - 'self_accessor' => true, - 'semicolon_after_instruction' => true, - 'set_type_to_cast' => true, - 'short_scalar_cast' => true, - 'silenced_deprecation_error' => false, - 'simple_to_complex_string_variable' => true, - 'simplified_null_return' => false, - 'single_blank_line_before_namespace' => true, - 'single_line_comment_style' => false, - 'single_quote' => true, - 'single_trait_insert_per_statement' => true, - 'space_after_semicolon' => true, - 'standardize_increment' => true, - 'standardize_not_equals' => true, - 'static_lambda' => true, - 'strict_comparison' => true, - 'strict_param' => true, - 'string_line_ending' => true, - 'ternary_operator_spaces' => true, - 'ternary_to_null_coalescing' => true, - 'trailing_comma_in_multiline_array' => true, - 'trim_array_spaces' => true, - 'unary_operator_spaces' => true, - 'visibility_required' => [ - 'elements' => [ - 'method', - 'property', - ], - ], - 'void_return' => false, - 'whitespace_after_comma_in_array' => true, - 'yoda_style' => [ - 'always_move_variable' => true, - 'equal' => true, - 'identical' => true, - 'less_and_greater' => true, - ], - ]; - - protected $targetPhpVersion = 70000; -} diff --git a/test/Unit/FactoryTest.php b/test/Unit/FactoryTest.php index 505c1be..2fb7efd 100644 --- a/test/Unit/FactoryTest.php +++ b/test/Unit/FactoryTest.php @@ -24,14 +24,14 @@ */ final class FactoryTest extends Framework\TestCase { - public function testIsFinal() + public function testIsFinal(): void { $reflection = new \ReflectionClass(Config\Factory::class); self::assertTrue($reflection->isFinal()); } - public function testFromRuleSetThrowsRuntimeExceptionIfCurrentPhpVersionIsLessThanTargetPhpVersion() + public function testFromRuleSetThrowsRuntimeExceptionIfCurrentPhpVersionIsLessThanTargetPhpVersion(): void { $targetPhpVersion = \PHP_VERSION_ID + 1; @@ -65,7 +65,7 @@ public function testFromRuleSetThrowsRuntimeExceptionIfCurrentPhpVersionIsLessTh * * @param $targetPhpVersion */ - public function testFromRuleSetCreatesConfig($targetPhpVersion) + public function testFromRuleSetCreatesConfig($targetPhpVersion): void { $name = 'foobarbaz'; @@ -118,7 +118,7 @@ public function providerTargetPhpVersion() } } - public function testFromRuleSetCreatesConfigWithOverrideRules() + public function testFromRuleSetCreatesConfigWithOverrideRules(): void { $name = 'foobarbaz'; diff --git a/test/Unit/RuleSet/AbstractRuleSetTestCase.php b/test/Unit/RuleSet/AbstractRuleSetTestCase.php index 3d3310e..a93d667 100644 --- a/test/Unit/RuleSet/AbstractRuleSetTestCase.php +++ b/test/Unit/RuleSet/AbstractRuleSetTestCase.php @@ -39,21 +39,21 @@ abstract class AbstractRuleSetTestCase extends Framework\TestCase */ protected $targetPhpVersion; - final public function testIsFinal() + final public function testIsFinal(): void { $reflection = new \ReflectionClass($this->className()); self::assertTrue($reflection->isFinal()); } - final public function testImplementsRuleSetInterface() + final public function testImplementsRuleSetInterface(): void { $reflection = new \ReflectionClass($this->className()); self::assertTrue($reflection->implementsInterface(Config\RuleSet::class)); } - final public function testDefaults() + final public function testDefaults(): void { $ruleSet = $this->createRuleSet(); @@ -62,7 +62,7 @@ final public function testDefaults() self::assertEquals($this->targetPhpVersion, $ruleSet->targetPhpVersion()); } - final public function testAllConfiguredRulesAreBuiltIn() + final public function testAllConfiguredRulesAreBuiltIn(): void { $fixersNotBuiltIn = \array_diff( $this->configuredFixers(), @@ -77,7 +77,7 @@ final public function testAllConfiguredRulesAreBuiltIn() )); } - final public function testAllBuiltInRulesAreConfigured() + final public function testAllBuiltInRulesAreConfigured(): void { $fixersWithoutConfiguration = \array_diff( $this->builtInFixers(), @@ -97,7 +97,7 @@ final public function testAllBuiltInRulesAreConfigured() * * @param mixed $header */ - final public function testConstructorRejectsInvalidHeader($header) + final public function testConstructorRejectsInvalidHeader($header): void { $this->expectException(\InvalidArgumentException::class); $this->expectExceptionMessage(\sprintf( @@ -129,7 +129,7 @@ final public function providerInvalidHeader() } } - final public function testHeaderCommentFixerIsDisabledByDefault() + final public function testHeaderCommentFixerIsDisabledByDefault(): void { $rules = $this->createRuleSet()->rules(); @@ -142,7 +142,7 @@ final public function testHeaderCommentFixerIsDisabledByDefault() * * @param string $header */ - final public function testHeaderCommentFixerIsEnabledIfHeaderIsProvided($header) + final public function testHeaderCommentFixerIsEnabledIfHeaderIsProvided($header): void { $rules = $this->createRuleSet($header)->rules(); @@ -184,7 +184,7 @@ final public function providerValidHeader() * @param array $ruleNames * @param string $source */ - final public function testRulesAreSortedByName($source, $ruleNames) + final public function testRulesAreSortedByName($source, $ruleNames): void { $sorted = $ruleNames; diff --git a/test/Unit/RuleSet/Php70Test.php b/test/Unit/RuleSet/Php70Test.php deleted file mode 100644 index 1b3aa04..0000000 --- a/test/Unit/RuleSet/Php70Test.php +++ /dev/null @@ -1,326 +0,0 @@ - true, - 'align_multiline_comment' => [ - 'comment_type' => 'all_multiline', - ], - 'array_indentation' => true, - 'array_syntax' => [ - 'syntax' => 'short', - ], - 'backtick_to_shell_exec' => true, - 'binary_operator_spaces' => [ - 'default' => 'single_space', - ], - 'blank_line_after_opening_tag' => true, - 'blank_line_before_return' => false, - 'blank_line_before_statement' => [ - 'statements' => [ - 'break', - 'continue', - 'declare', - 'default', - 'die', - 'do', - 'exit', - 'for', - 'foreach', - 'goto', - 'if', - 'include', - 'include_once', - 'require', - 'require_once', - 'return', - 'switch', - 'throw', - 'try', - 'while', - 'yield', - ], - ], - 'cast_spaces' => true, - 'class_attributes_separation' => [ - 'elements' => [ - 'method', - 'property', - ], - ], - 'class_keyword_remove' => false, - 'combine_consecutive_issets' => true, - 'combine_consecutive_unsets' => true, - 'combine_nested_dirname' => true, - 'comment_to_phpdoc' => true, - 'compact_nullable_typehint' => false, - 'concat_space' => [ - 'spacing' => 'one', - ], - 'date_time_immutable' => true, - 'declare_equal_normalize' => true, - 'declare_strict_types' => true, - 'dir_constant' => true, - 'doctrine_annotation_array_assignment' => [ - 'operator' => ':', - ], - 'doctrine_annotation_braces' => [ - 'syntax' => 'without_braces', - ], - 'doctrine_annotation_indentation' => true, - 'doctrine_annotation_spaces' => [ - 'after_argument_assignments' => false, - 'after_array_assignments_colon' => true, - 'after_array_assignments_equals' => false, - 'around_parentheses' => true, - 'before_argument_assignments' => false, - 'before_array_assignments_colon' => false, - 'before_array_assignments_equals' => false, - ], - 'ereg_to_preg' => true, - 'error_suppression' => [ - 'mute_deprecation_error' => true, - 'noise_remaining_usages' => true, - ], - 'escape_implicit_backslashes' => true, - 'explicit_indirect_variable' => true, - 'explicit_string_variable' => true, - 'final_class' => true, - 'final_internal_class' => true, - 'fopen_flag_order' => true, - 'fopen_flags' => true, - 'fully_qualified_strict_types' => true, - 'function_to_constant' => true, - 'function_typehint_space' => true, - 'general_phpdoc_annotation_remove' => false, - 'hash_to_slash_comment' => true, - 'header_comment' => false, - 'heredoc_indentation' => false, - 'heredoc_to_nowdoc' => true, - 'implode_call' => true, - 'include' => true, - 'increment_style' => [ - 'style' => 'pre', - ], - 'is_null' => true, - 'linebreak_after_opening_tag' => true, - 'list_syntax' => false, - 'logical_operators' => true, - 'lowercase_cast' => true, - 'lowercase_static_reference' => true, - 'magic_constant_casing' => true, - 'magic_method_casing' => true, - 'mb_str_functions' => true, - 'method_argument_space' => [ - 'ensure_fully_multiline' => true, - 'keep_multiple_spaces_after_comma' => false, - ], - 'method_chaining_indentation' => true, - 'method_separation' => true, - 'modernize_types_casting' => true, - 'multiline_comment_opening_closing' => true, - 'multiline_whitespace_before_semicolons' => [ - 'strategy' => 'no_multi_line', - ], - 'native_constant_invocation' => true, - 'native_function_casing' => true, - 'native_function_invocation' => true, - 'native_function_type_declaration_casing' => true, - 'new_with_braces' => true, - 'no_alias_functions' => true, - 'no_alternative_syntax' => true, - 'no_binary_string' => true, - 'no_blank_lines_after_class_opening' => true, - 'no_blank_lines_after_phpdoc' => true, - 'no_blank_lines_before_namespace' => false, - 'no_empty_comment' => true, - 'no_empty_phpdoc' => true, - 'no_empty_statement' => true, - 'no_extra_blank_lines' => [ - 'tokens' => [ - 'break', - 'case', - 'continue', - 'curly_brace_block', - 'default', - 'extra', - 'parenthesis_brace_block', - 'return', - 'square_brace_block', - 'switch', - 'throw', - 'use', - 'use_trait', - ], - ], - 'no_extra_consecutive_blank_lines' => false, - 'no_homoglyph_names' => true, - 'no_leading_import_slash' => true, - 'no_leading_namespace_whitespace' => true, - 'no_mixed_echo_print' => [ - 'use' => 'echo', - ], - 'no_multiline_whitespace_around_double_arrow' => true, - 'no_multiline_whitespace_before_semicolons' => false, - 'no_null_property_initialization' => true, - 'no_php4_constructor' => false, - 'no_short_bool_cast' => true, - 'no_short_echo_tag' => true, - 'no_singleline_whitespace_before_semicolons' => true, - 'no_spaces_around_offset' => true, - 'no_superfluous_elseif' => true, - 'no_superfluous_phpdoc_tags' => false, - 'no_trailing_comma_in_list_call' => true, - 'no_trailing_comma_in_singleline_array' => true, - 'no_unneeded_control_parentheses' => true, - 'no_unneeded_curly_braces' => true, - 'no_unneeded_final_method' => true, - 'no_unreachable_default_argument_value' => true, - 'no_unset_cast' => true, - 'no_unset_on_property' => true, - 'no_unused_imports' => true, - 'no_useless_else' => true, - 'no_useless_return' => true, - 'no_whitespace_before_comma_in_array' => true, - 'no_whitespace_in_blank_line' => true, - 'non_printable_character' => true, - 'normalize_index_brace' => true, - 'not_operator_with_space' => false, - 'not_operator_with_successor_space' => false, - 'object_operator_without_whitespace' => true, - 'ordered_class_elements' => true, - 'ordered_imports' => true, - 'ordered_interfaces' => true, - 'php_unit_construct' => true, - 'php_unit_dedicate_assert' => true, - 'php_unit_dedicate_assert_internal_type' => false, - 'php_unit_expectation' => [ - 'target' => 'newest', - ], - 'php_unit_fqcn_annotation' => true, - 'php_unit_internal_class' => [ - 'types' => [ - 'abstract', - 'final', - 'normal', - ], - ], - 'php_unit_method_casing' => true, - 'php_unit_mock' => true, - 'php_unit_mock_short_will_return' => true, - 'php_unit_namespaced' => [ - 'target' => 'newest', - ], - 'php_unit_no_expectation_annotation' => [ - 'target' => 'newest', - 'use_class_const' => true, - ], - 'php_unit_ordered_covers' => true, - 'php_unit_set_up_tear_down_visibility' => true, - 'php_unit_size_class' => false, - 'php_unit_strict' => false, - 'php_unit_test_annotation' => true, - 'php_unit_test_case_static_method_calls' => [ - 'call_type' => 'self', - ], - 'php_unit_test_class_requires_covers' => true, - 'phpdoc_add_missing_param_annotation' => [ - 'only_untyped' => false, - ], - 'phpdoc_align' => true, - 'phpdoc_annotation_without_dot' => true, - 'phpdoc_indent' => true, - 'phpdoc_inline_tag' => true, - 'phpdoc_no_access' => true, - 'phpdoc_no_alias_tag' => true, - 'phpdoc_no_empty_return' => true, - 'phpdoc_no_package' => true, - 'phpdoc_no_useless_inheritdoc' => true, - 'phpdoc_order' => true, - 'phpdoc_return_self_reference' => true, - 'phpdoc_scalar' => true, - 'phpdoc_separation' => true, - 'phpdoc_single_line_var_spacing' => true, - 'phpdoc_summary' => true, - 'phpdoc_to_comment' => false, - 'phpdoc_to_return_type' => false, - 'phpdoc_trim' => true, - 'phpdoc_trim_consecutive_blank_line_separation' => true, - 'phpdoc_types' => true, - 'phpdoc_types_order' => [ - 'null_adjustment' => 'always_first', - 'sort_algorithm' => 'alpha', - ], - 'phpdoc_var_annotation_correct_order' => true, - 'phpdoc_var_without_name' => true, - 'pow_to_exponentiation' => true, - 'pre_increment' => false, - 'protected_to_private' => true, - 'psr0' => false, - 'psr4' => true, - 'random_api_migration' => true, - 'return_assignment' => true, - 'return_type_declaration' => true, - 'self_accessor' => true, - 'semicolon_after_instruction' => true, - 'set_type_to_cast' => true, - 'short_scalar_cast' => true, - 'silenced_deprecation_error' => false, - 'simple_to_complex_string_variable' => true, - 'simplified_null_return' => false, - 'single_blank_line_before_namespace' => true, - 'single_line_comment_style' => false, - 'single_quote' => true, - 'single_trait_insert_per_statement' => true, - 'space_after_semicolon' => true, - 'standardize_increment' => true, - 'standardize_not_equals' => true, - 'static_lambda' => true, - 'strict_comparison' => true, - 'strict_param' => true, - 'string_line_ending' => true, - 'ternary_operator_spaces' => true, - 'ternary_to_null_coalescing' => true, - 'trailing_comma_in_multiline_array' => true, - 'trim_array_spaces' => true, - 'unary_operator_spaces' => true, - 'visibility_required' => [ - 'elements' => [ - 'method', - 'property', - ], - ], - 'void_return' => false, - 'whitespace_after_comma_in_array' => true, - 'yoda_style' => [ - 'always_move_variable' => true, - 'equal' => true, - 'identical' => true, - 'less_and_greater' => true, - ], - ]; - - protected $targetPhpVersion = 70000; -}