1--TEST--
2#[\Override]: Parent method is protected.
3--FILE--
4<?php
5
6class P {
7    protected function p(): void {}
8}
9
10class C extends P {
11    #[\Override]
12    public function p(): void {}
13}
14
15echo "Done";
16
17?>
18--EXPECT--
19Done
20