We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c47551 commit ba5b7aaCopy full SHA for ba5b7aa
src/bitExpert/PHPStan/Magento/Autoload/FactoryAutoloader.php
@@ -61,7 +61,11 @@ protected function getFileContents(string $class): string
61
$namespace = implode('\\', $namespace);
62
63
$template = "<?php\n";
64
- $template .= "namespace {NAMESPACE};\n\n";
+
65
+ if ($namespace !== '') {
66
+ $template .= "namespace {NAMESPACE};\n\n";
67
+ }
68
69
$template .= "/**\n";
70
$template .= " * Factory class for @see \{NAMESPACE}\{CLASSNAME}\n";
71
$template .= " */\n";
0 commit comments