Skip to content

Commit 6199e9a

Browse files
committed
Merge branch 'main' of github.com:wintercms/wn-builder-plugin
2 parents 36c77da + 9a018df commit 6199e9a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

classes/MigrationFileParser.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ protected function extractNamespace($stream)
6464
return null;
6565
}
6666

67+
if (PHP_VERSION_ID >= 80000) {
68+
return $stream->getNextExpectedTerminated([T_NAME_QUALIFIED], [T_WHITESPACE, ';']);
69+
}
70+
6771
return $stream->getNextExpectedTerminated([T_STRING, T_NS_SEPARATOR], [T_WHITESPACE, ';']);
6872
}
6973
}

0 commit comments

Comments
 (0)