mirror of
https://github.com/php/php-src.git
synced 2024-12-19 06:50:17 +08:00
3709e74b5e
Closes GH-5353. From now on, PHP will have reflection information about default values of parameters of internal functions. Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
23 lines
363 B
PHP
23 lines
363 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 %s on line %d
|