xref: /PHP-7.3/Zend/tests/bug70957.phpt (revision 45c5e271)
1--TEST--
2Bug #70957 (self::class can not 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--
22Warning: Declaration of T::bar() should be compatible with Foo::bar($a = 'Foo') in %sbug70957.php on line %d
23