Status: Verifiedbuggood first issue
倉庫指標
- 星標
- (596 顆星)
- PR 合併指標
- (PR 指標待抓取)
描述
Hello!
When testing example 17:
<?php namespace NS { class ClassName { } } $c = new ClassName(); print $c::class; ?>
I get the error
"Fatal error: No code may exist outside of namespace {} in..."
on the page https://www.php.net/manual/en/language.oop5.basic.php .
I have version 8.1.
Sincerely, George.