Skip to content

Commit d6b2b6d

Browse files
authored
Update to PHP-CS-Fixer ^3.16 (#22)
1 parent 7cb5cb3 commit d6b2b6d

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
"php": "~8.1.0 || ~8.2.0",
1414
"ext-mbstring": "*",
1515
"ext-tokenizer": "*",
16-
"friendsofphp/php-cs-fixer": "^3.15.1"
16+
"friendsofphp/php-cs-fixer": "^3.16"
1717
},
1818
"require-dev": {
19-
"phpstan/phpstan": "^1.10.6",
20-
"phpstan/phpstan-phpunit": "^1.3.10",
21-
"phpunit/phpunit": "^10.0.16",
19+
"phpstan/phpstan": "^1.10.11",
20+
"phpstan/phpstan-phpunit": "^1.3.11",
21+
"phpunit/phpunit": "^10.0.19",
2222
"slam/php-debug-r": "^1.8.0",
2323
"slam/phpstan-extensions": "^6.0.0"
2424
},

lib/Config.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace SlamCsFixer;
66

77
use PhpCsFixer\Config as PhpCsFixerConfig;
8-
use PhpCsFixer\Fixer as MainFixer;
98

109
final class Config extends PhpCsFixerConfig
1110
{
@@ -19,22 +18,17 @@ final class Config extends PhpCsFixerConfig
1918
'Slam/final_abstract_public' => true,
2019
'Slam/final_internal_class' => true,
2120
'Slam/function_reference_space' => true,
22-
'Slam/php_only_braces' => true,
2321
'Slam/php_only_slam_inline_comment_spacer' => true,
2422
'Slam/utf8' => true,
2523
'align_multiline_comment' => ['comment_type' => 'all_multiline'],
2624
'binary_operator_spaces' => ['default' => 'align_single_space'],
27-
'braces' => false, // See Slam/php_only_braces
2825
'combine_consecutive_issets' => false,
2926
'combine_consecutive_unsets' => false,
3027
'comment_to_phpdoc' => false,
3128
'concat_space' => ['spacing' => 'one'],
32-
'control_structure_braces' => true,
33-
'control_structure_continuation_position' => true,
3429
'curly_braces_position' => true,
3530
'date_time_create_from_format_call' => true,
3631
'date_time_immutable' => false,
37-
'declare_parentheses' => true,
3832
'error_suppression' => false,
3933
'final_class' => false,
4034
'final_internal_class' => false,
@@ -50,7 +44,6 @@ final class Config extends PhpCsFixerConfig
5044
'native_function_invocation' => ['include' => ['@internal']],
5145
'no_blank_lines_before_namespace' => false,
5246
'no_multiline_whitespace_around_double_arrow' => false,
53-
'no_multiple_statements_per_line' => true,
5447
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true],
5548
'not_operator_with_space' => false,
5649
'not_operator_with_successor_space' => true,
@@ -78,7 +71,6 @@ final class Config extends PhpCsFixerConfig
7871
'simplified_null_return' => false,
7972
'single_line_throw' => false,
8073
'space_after_semicolon' => true,
81-
'statement_indentation' => true,
8274
'static_lambda' => false,
8375
'unary_operator_spaces' => false,
8476
'use_arrow_functions' => false,
@@ -96,7 +88,6 @@ public function __construct(array $overriddenRules = [])
9688
new FinalInternalClassFixer(),
9789
new FunctionReferenceSpaceFixer(),
9890
new PhpFileOnlyProxyFixer(new InlineCommentSpacerFixer()),
99-
new PhpFileOnlyProxyFixer(new MainFixer\Basic\BracesFixer()),
10091
new Utf8Fixer(),
10192
]);
10293

0 commit comments

Comments
 (0)