Skip to content

Commit 7557e0b

Browse files
authored
Enable global_namespace_import rule (#1)
See https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/2.19/doc/rules/import/global_namespace_import.rst See codeigniter4/CodeIgniter4#5250 * config: change global_namespace_import to true * Use explicit options * Fix CS
1 parent 38b2f8c commit 7557e0b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/CodeIgniter4.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,11 @@ public function __construct()
171171
'fix_inline' => true,
172172
'replacements' => ['inheritDocs' => 'inheritDoc'],
173173
],
174-
'global_namespace_import' => false,
174+
'global_namespace_import' => [
175+
'import_constants' => false,
176+
'import_functions' => false,
177+
'import_classes' => true,
178+
],
175179
'group_import' => false,
176180
'header_comment' => false, // false by default
177181
'heredoc_indentation' => ['indentation' => 'start_plus_one'],

0 commit comments

Comments
 (0)