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