mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +08:00
22 lines
353 B
PHP
22 lines
353 B
PHP
--TEST--
|
|
Bug #62892 (ReflectionClass::getTraitAliases crashes on importing trait methods as private)
|
|
--FILE--
|
|
<?php
|
|
|
|
trait myTrait {
|
|
public function run() {}
|
|
}
|
|
|
|
class myClass {
|
|
use myTrait {
|
|
MyTrait::run as private;
|
|
}
|
|
}
|
|
$class = new \ReflectionClass('myClass');
|
|
var_dump($class->getTraitAliases());
|
|
|
|
?>
|
|
--EXPECTF--
|
|
array(0) {
|
|
}
|