Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"php": "~8.3.0 || ~8.4.0",
"ext-mbstring": "*",
"ext-tokenizer": "*",
"friendsofphp/php-cs-fixer": "^3.87.2"
"friendsofphp/php-cs-fixer": "^3.88.0"
},
"require-dev": {
"phpstan/phpstan": "^2.1.28",
"phpstan/phpstan": "^2.1.29",
"phpstan/phpstan-phpunit": "^2.0.7",
"phpunit/phpunit": "^12.3.14"
},
Expand Down
121 changes: 60 additions & 61 deletions lib/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,67 +9,66 @@
final class Config extends PhpCsFixerConfig
{
public const RULES = [
'@DoctrineAnnotation' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'@PHP80Migration:risky' => true,
'@PHP81Migration' => true,
'@PHPUnit84Migration:risky' => true,
'Slam/final_abstract_public' => true,
'Slam/final_internal_class' => true,
'Slam/function_reference_space' => true,
'Slam/php_only_slam_inline_comment_spacer' => true,
'Slam/utf8' => true,
'align_multiline_comment' => ['comment_type' => 'all_multiline'],
'binary_operator_spaces' => ['default' => 'align_single_space'],
'combine_consecutive_issets' => false,
'combine_consecutive_unsets' => false,
'comment_to_phpdoc' => false,
'concat_space' => ['spacing' => 'one'],
'date_time_create_from_format_call' => true,
'date_time_immutable' => false,
'error_suppression' => false,
'final_class' => false,
'final_internal_class' => false,
'final_public_method_for_abstract_class' => false,
'general_phpdoc_annotation_remove' => false,
'global_namespace_import' => true,
'group_import' => false,
'header_comment' => false,
'heredoc_indentation' => false,
'mb_str_functions' => false,
'method_argument_space' => ['keep_multiple_spaces_after_comma' => true],
'native_constant_invocation' => true,
'native_function_invocation' => ['include' => ['@internal']],
'no_multiline_whitespace_around_double_arrow' => false,
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true],
'not_operator_with_space' => false,
'not_operator_with_successor_space' => true,
'ordered_class_elements' => ['order' => ['use_trait', 'constant_public', 'constant_protected', 'constant_private', 'property', 'construct', 'destruct', 'magic', 'phpunit', 'method']],
'ordered_interfaces' => true,
'php_unit_data_provider_static' => true,
'php_unit_internal_class' => false,
'php_unit_size_class' => false,
'php_unit_strict' => false,
'php_unit_test_class_requires_covers' => false,
'phpdoc_add_missing_param_annotation' => false,
'phpdoc_line_span' => ['const' => 'single', 'property' => 'single', 'method' => 'single'],
'phpdoc_tag_casing' => true,
'phpdoc_to_param_type' => false,
'phpdoc_to_property_type' => true,
'phpdoc_to_return_type' => false,
'pow_to_exponentiation' => false,
// 'psr0' => true,
'random_api_migration' => true,
'regular_callable_call' => true,
'simple_to_complex_string_variable' => false,
'simplified_if_return' => true,
'simplified_null_return' => false,
'single_line_throw' => false,
'space_after_semicolon' => true,
'static_lambda' => false,
'unary_operator_spaces' => false,
'use_arrow_functions' => false,
'@DoctrineAnnotation' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'@PHP8x0Migration:risky' => true,
'@PHP8x1Migration' => true,
'@PHPUnit8x4Migration:risky' => true,
'Slam/final_abstract_public' => true,
'Slam/final_internal_class' => true,
'Slam/function_reference_space' => true,
'Slam/php_only_slam_inline_comment_spacer' => true,
'Slam/utf8' => true,
'align_multiline_comment' => ['comment_type' => 'all_multiline'],
'binary_operator_spaces' => ['default' => 'align_single_space'],
'combine_consecutive_issets' => false,
'combine_consecutive_unsets' => false,
'comment_to_phpdoc' => false,
'concat_space' => ['spacing' => 'one'],
'date_time_create_from_format_call' => true,
'date_time_immutable' => false,
'error_suppression' => false,
'final_class' => false,
'final_internal_class' => false,
'final_public_method_for_abstract_class' => false,
'general_phpdoc_annotation_remove' => false,
'global_namespace_import' => true,
'group_import' => false,
'header_comment' => false,
'heredoc_indentation' => false,
'mb_str_functions' => false,
'method_argument_space' => ['keep_multiple_spaces_after_comma' => true],
'native_constant_invocation' => true,
'native_function_invocation' => ['include' => ['@internal']],
'no_multiline_whitespace_around_double_arrow' => false,
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true],
'not_operator_with_space' => false,
'not_operator_with_successor_space' => true,
'ordered_class_elements' => ['order' => ['use_trait', 'constant_public', 'constant_protected', 'constant_private', 'property', 'construct', 'destruct', 'magic', 'phpunit', 'method']],
'ordered_interfaces' => true,
'php_unit_data_provider_static' => true,
'php_unit_internal_class' => false,
'php_unit_size_class' => false,
'php_unit_strict' => false,
'php_unit_test_class_requires_covers' => false,
'phpdoc_add_missing_param_annotation' => false,
'phpdoc_line_span' => ['const' => 'single', 'property' => 'single', 'method' => 'single'],
'phpdoc_tag_casing' => true,
'phpdoc_to_param_type' => false,
'phpdoc_to_property_type' => true,
'phpdoc_to_return_type' => false,
'pow_to_exponentiation' => false,
'random_api_migration' => true,
'regular_callable_call' => true,
'simple_to_complex_string_variable' => false,
'simplified_if_return' => true,
'simplified_null_return' => false,
'single_line_throw' => false,
'space_after_semicolon' => true,
'static_lambda' => false,
'unary_operator_spaces' => false,
'use_arrow_functions' => false,
];

/** @param array<string, mixed> $overriddenRules */
Expand Down