-
-
Notifications
You must be signed in to change notification settings - Fork 137
Open
Description
@prettier/plugin-php v0.24.0
Playground link
Input:
<?php
abstract readonly class Foo {
public function bar() {
echo 'bar';
}
}
$foo = new readonly class extends Foo{};
echo $foo->bar();Output:
Parse Error : syntax error, unexpected 'readonly' (T_READ_ONLY) on line 9
7 | }
8 |
> 9 | $foo = new readonly class extends Foo{};
| ^
10 | echo $foo->bar();Metadata
Metadata
Assignees
Labels
No labels