1--TEST--
2#[\Override]: No parent interface.
3--FILE--
4<?php
5
6interface I {
7    #[\Override]
8    public function i(): void;
9}
10
11interface II extends I {}
12
13
14class C implements II {
15    public function i(): void {}
16}
17
18class C2 implements I {
19    public function i(): void {}
20}
21
22echo "Done";
23
24?>
25--EXPECTF--
26Fatal error: I::i() has #[\Override] attribute, but no matching parent method exists in %s on line %d
27