Skip to content

Commit 3fa805d

Browse files
committed
Do not import non-namespaced classes and functions by default, since importing a non-namespaced class in another non-namespaced class triggers a notice
1 parent b45a67c commit 3fa805d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpCsFixer/Rules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private static function getBaseRules(): array
7272
'explicit_string_variable' => true,
7373
'fully_qualified_strict_types' => true,
7474
'function_to_constant' => true,
75-
'global_namespace_import' => true,
75+
'global_namespace_import' => false,
7676
// 'header_comment' => [ // Has too many issues atm
7777
// 'header' => '',
7878
// ],

0 commit comments

Comments
 (0)