1--TEST--
2#[\Override]
3--FILE--
4<?php
5
6interface I {
7    public function i();
8}
9
10interface II extends I {
11    #[\Override]
12    public function i();
13}
14
15class P {
16    public function p1() {}
17    public function p2() {}
18    public function p3() {}
19    public function p4() {}
20}
21
22class PP extends P {
23    #[\Override]
24    public function p1() {}
25    public function p2() {}
26    #[\Override]
27    public function p3() {}
28}
29
30class C extends PP implements I {
31    #[\Override]
32    public function i() {}
33    #[\Override]
34    public function p1() {}
35    #[\Override]
36    public function p2() {}
37    public function p3() {}
38    #[\Override]
39    public function p4() {}
40    public function c() {}
41}
42
43echo "Done";
44
45?>
46--EXPECT--
47Done
48