Skip to content

Commit 4375d55

Browse files
committed
Permit use of latest php-cs-fixer v3.6
1 parent 1768647 commit 4375d55

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"require": {
1313
"php": "^7.4 || ^8.0",
1414
"ext-tokenizer": "*",
15-
"friendsofphp/php-cs-fixer": "3.4",
16-
"nexusphp/cs-config": "^3.3"
15+
"friendsofphp/php-cs-fixer": "^3.6",
16+
"nexusphp/cs-config": "^3.4"
1717
},
1818
"require-dev": {
1919
"nexusphp/tachycardia": "^1.3",

src/CodeIgniter4.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,12 @@ public function __construct()
8686
'single_line' => true,
8787
'space_before_parenthesis' => true,
8888
],
89-
'clean_namespace' => true,
90-
'combine_consecutive_issets' => true,
91-
'combine_consecutive_unsets' => true,
92-
'combine_nested_dirname' => true,
93-
'comment_to_phpdoc' => [
89+
'class_reference_name_casing' => true,
90+
'clean_namespace' => true,
91+
'combine_consecutive_issets' => true,
92+
'combine_consecutive_unsets' => true,
93+
'combine_nested_dirname' => true,
94+
'comment_to_phpdoc' => [
9495
'ignored_tags' => [
9596
'todo',
9697
'codeCoverageIgnore',
@@ -171,7 +172,8 @@ public function __construct()
171172
'fix_inline' => true,
172173
'replacements' => ['inheritDocs' => 'inheritDoc'],
173174
],
174-
'global_namespace_import' => [
175+
'get_class_to_class_keyword' => false,
176+
'global_namespace_import' => [
175177
'import_constants' => false,
176178
'import_functions' => false,
177179
'import_classes' => true,
@@ -262,6 +264,7 @@ public function __construct()
262264
],
263265
'no_unneeded_curly_braces' => ['namespaces' => true],
264266
'no_unneeded_final_method' => ['private_methods' => true],
267+
'no_unneeded_import_alias' => true,
265268
'no_unreachable_default_argument_value' => true,
266269
'no_unset_cast' => true,
267270
'no_unset_on_property' => false,

0 commit comments

Comments
 (0)