Skip to content

Commit 61aea09

Browse files
committed
Configure new fixers
1 parent 44c52a4 commit 61aea09

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
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": "^7.4 || ^8.0",
2323
"ext-tokenizer": "*",
24-
"friendsofphp/php-cs-fixer": "^3.18",
24+
"friendsofphp/php-cs-fixer": "^3.20",
2525
"nexusphp/cs-config": "^3.6"
2626
},
2727
"require-dev": {

src/CodeIgniter4.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ public function __construct()
172172
'pi',
173173
],
174174
],
175-
'function_typehint_space' => true,
176175
'general_phpdoc_annotation_remove' => [
177176
'annotations' => [
178177
'author',
@@ -304,6 +303,7 @@ public function __construct()
304303
'normalize_index_brace' => true,
305304
'not_operator_with_space' => false,
306305
'not_operator_with_successor_space' => true,
306+
'nullable_type_declaration' => false, // requires 8.0+
307307
'nullable_type_declaration_for_default_null_value' => ['use_nullable_type_declaration' => true],
308308
'object_operator_without_whitespace' => true,
309309
'octal_notation' => false, // requires 8.1+
@@ -333,6 +333,7 @@ public function __construct()
333333
'assertNotSame',
334334
],
335335
],
336+
'php_unit_data_provider_name' => false,
336337
'php_unit_data_provider_static' => false,
337338
'php_unit_dedicate_assert' => ['target' => 'newest'],
338339
'php_unit_dedicate_assert_internal_type' => ['target' => 'newest'],
@@ -599,8 +600,9 @@ public function __construct()
599600
'after_heredoc' => true,
600601
'elements' => ['arrays'],
601602
],
602-
'trim_array_spaces' => true,
603-
'types_spaces' => [
603+
'trim_array_spaces' => true,
604+
'type_declaration_spaces' => ['elements' => ['function', 'property']],
605+
'types_spaces' => [
604606
'space' => 'none',
605607
'space_multiple_catch' => 'none',
606608
],

0 commit comments

Comments
 (0)