Skip to content

Commit 929ee6b

Browse files
committed
Bump to php-cs-fixer v3.95
1 parent c7d227d commit 929ee6b

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"require": {
2222
"php": "^8.2",
2323
"ext-tokenizer": "*",
24-
"friendsofphp/php-cs-fixer": "^3.94",
24+
"friendsofphp/php-cs-fixer": "^3.95",
2525
"nexusphp/cs-config": "^3.28"
2626
},
2727
"require-dev": {

src/CodeIgniter4.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ public function __construct()
349349
'no_useless_sprintf' => true,
350350
'no_whitespace_before_comma_in_array' => ['after_heredoc' => true],
351351
'no_whitespace_in_blank_line' => true,
352+
'no_whitespace_in_empty_array' => true,
352353
'non_printable_character' => ['use_escape_sequences_in_strings' => true],
353354
'normalize_index_brace' => true,
354355
'not_operator_with_space' => false,
@@ -478,8 +479,9 @@ public function __construct()
478479
'case' => 'multi',
479480
'class' => 'multi',
480481
'const' => 'multi',
482+
'function' => 'multi',
481483
'method' => 'multi',
482-
'other' => null,
484+
'other' => 'single',
483485
'property' => 'multi',
484486
'trait_import' => 'multi',
485487
],
@@ -492,6 +494,7 @@ public function __construct()
492494
'type' => 'var',
493495
],
494496
],
497+
'phpdoc_no_duplicate_types' => true,
495498
'phpdoc_no_empty_return' => false,
496499
'phpdoc_no_package' => true,
497500
'phpdoc_no_useless_inheritdoc' => true,
@@ -564,9 +567,11 @@ public function __construct()
564567
'phpdoc_to_return_type' => false,
565568
'phpdoc_trim' => true,
566569
'phpdoc_trim_consecutive_blank_line_separation' => true,
567-
'phpdoc_types' => ['groups' => ['simple', 'alias', 'meta']],
568-
'phpdoc_types_no_duplicates' => true,
569-
'phpdoc_types_order' => [
570+
'phpdoc_types' => [
571+
'groups' => ['simple', 'alias', 'meta'],
572+
'exclude' => [],
573+
],
574+
'phpdoc_types_order' => [
570575
'null_adjustment' => 'always_last',
571576
'sort_algorithm' => 'alpha',
572577
'case_sensitive' => false,
@@ -584,7 +589,7 @@ public function __construct()
584589
],
585590
],
586591
'regular_callable_call' => true,
587-
'return_assignment' => true,
592+
'return_assignment' => ['skip_named_var_tags' => true],
588593
'return_to_yield_from' => false,
589594
'return_type_declaration' => ['space_before' => 'none'],
590595
'self_accessor' => false,

0 commit comments

Comments
 (0)