1--TEST--
2#[\Override]: Valid anonymous class.
3--FILE--
4<?php
5
6interface I {
7    public function i(): void;
8}
9
10new class () implements I {
11    #[\Override]
12    public function i(): void {}
13};
14
15echo "Done";
16
17?>
18--EXPECT--
19Done
20