Skip to content

Commit 99a889e

Browse files
committed
Add new fixers of php-cs-fixer v3.93
1 parent 2f04b8d commit 99a889e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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.1",
2323
"ext-tokenizer": "*",
24-
"friendsofphp/php-cs-fixer": "^3.92",
24+
"friendsofphp/php-cs-fixer": "^3.93",
2525
"nexusphp/cs-config": "^3.27"
2626
},
2727
"require-dev": {

src/CodeIgniter4.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public function __construct()
3232
'array_push' => true,
3333
'array_syntax' => ['syntax' => 'short'],
3434
'assign_null_coalescing_to_coalesce_equal' => true,
35+
'attribute_block_no_spaces' => true,
3536
'attribute_empty_parentheses' => false,
3637
'backtick_to_shell_exec' => true,
3738
'binary_operator_spaces' => [
@@ -245,6 +246,7 @@ public function __construct()
245246
'attribute_placement' => 'standalone',
246247
],
247248
'method_chaining_indentation' => true,
249+
'modern_serialization_methods' => true,
248250
'modernize_strpos' => ['modernize_stripos' => true],
249251
'modernize_types_casting' => true,
250252
'modifier_keywords' => ['elements' => ['const', 'method', 'property']],
@@ -297,6 +299,7 @@ public function __construct()
297299
'no_multiple_statements_per_line' => true,
298300
'no_null_property_initialization' => true,
299301
'no_php4_constructor' => true,
302+
'no_redundant_readonly_property' => true,
300303
'no_short_bool_cast' => true,
301304
'no_singleline_whitespace_before_semicolons' => true,
302305
'no_space_around_double_colon' => true,
@@ -558,6 +561,7 @@ public function __construct()
558561
'phpdoc_trim' => true,
559562
'phpdoc_trim_consecutive_blank_line_separation' => true,
560563
'phpdoc_types' => ['groups' => ['simple', 'alias', 'meta']],
564+
'phpdoc_types_no_duplicates' => true,
561565
'phpdoc_types_order' => [
562566
'null_adjustment' => 'always_last',
563567
'sort_algorithm' => 'alpha',

0 commit comments

Comments
 (0)