这段PHP代码运行正常:
<?php
#[Block(
id: "system_main_block",
// comment here!
admin_label: "more text",
forms: [
'settings_tray' => FALSE,
],
)]
class Foo {}
#[\Attribute(\Attribute::TARGET_CLASS)]
class Block {}
print 'Ok!';
但我在PHP文档中找不到任何允许在属性中使用单行注释的内容.
有记录在案的地方吗?