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 2f991fb commit f3762ceCopy full SHA for f3762ce
1 file changed
src/LogicStream/LogicStreamWrapper.php
@@ -120,13 +120,14 @@ private function checkAndAppendNamespace(
120
string $originalLine,
121
):bool {
122
if($lineNumber > 0) {
123
- if(str_starts_with($line, "namespace")) {
+ if(str_contains($line, "\tnamespace")) {
124
$this->contents .= $originalLine;
125
return true;
126
}
127
+
128
if($line) {
129
$namespace = new LogicStreamNamespace($this->path, self::NAMESPACE_PREFIX);
- $this->contents .= "namespace $namespace;\t";
130
+ $this->contents .= "namespace $namespace;\n$originalLine\t";
131
132
133
0 commit comments