xref: /PHP-8.2/Zend/tests/bug70957.phpt (revision c3dda473)
1--TEST--
2Bug #70957 (self::class cannot be resolved with reflection for abstract class)
3--FILE--
4<?php
5
6abstract class Foo
7{
8    function bar($a = self::class) {}
9}
10
11trait T {
12    public function bar() {
13    }
14}
15
16class B extends Foo
17{
18    use T;
19}
20?>
21--EXPECTF--
22Fatal error: Declaration of T::bar() must be compatible with Foo::bar($a = 'Foo') in %s on line %d
23