1--TEST--
2#[\Override]: enum without interface.
3--FILE--
4<?php
5
6enum E {
7    case One;
8    case Two;
9
10    #[\Override]
11    public function e(): void {}
12}
13
14echo "Done";
15
16?>
17--EXPECTF--
18Fatal error: E::e() has #[\Override] attribute, but no matching parent method exists in %s on line %d
19