mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
23 lines
375 B
PHP
23 lines
375 B
PHP
--TEST--
|
|
Bug #70957 (self::class can not be resolved with reflection for abstract class)
|
|
--FILE--
|
|
<?php
|
|
|
|
abstract class Foo
|
|
{
|
|
function bar($a = self::class) {}
|
|
}
|
|
|
|
trait T {
|
|
public function bar() {
|
|
}
|
|
}
|
|
|
|
class B extends Foo
|
|
{
|
|
use T;
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Declaration of T::bar() must be compatible with Foo::bar($a = 'Foo') in %sbug70957.php on line %d
|