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.
2 parents 17a2473 + 9cc980c commit 4b2dd76Copy full SHA for 4b2dd76
src/bitExpert/PHPStan/Magento/Autoload/ProxyAutoloader.php
@@ -113,7 +113,11 @@ protected function getFileContents(string $class): string
113
}
114
115
$template = "<?php\n";
116
- $template .= "namespace {NAMESPACE};\n";
+
117
+ if ($namespace !== '') {
118
+ $template .= "namespace {NAMESPACE};\n\n";
119
+ }
120
121
$template .= "/**\n";
122
$template .= " * Proxy class for @see {CLASSNAME}\n";
123
$template .= " */\n";
0 commit comments