Skip to content

Commit

Permalink
Do not import non-namespaced classes and functions by default, since …
Browse files Browse the repository at this point in the history
…importing a non-namespaced class in another non-namespaced class triggers a notice
  • Loading branch information
mollierobbert committed Jan 27, 2020
1 parent b45a67c commit 3fa805d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpCsFixer/Rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private static function getBaseRules(): array
'explicit_string_variable' => true,
'fully_qualified_strict_types' => true,
'function_to_constant' => true,
'global_namespace_import' => true,
'global_namespace_import' => false,
// 'header_comment' => [ // Has too many issues atm
// 'header' => '',
// ],
Expand Down

0 comments on commit 3fa805d

Please sign in to comment.