xref: /PHP-7.4/Zend/tests/bug62892.phpt (revision 782352c5)
1--TEST--
2Bug #62892 (ReflectionClass::getTraitAliases crashes on importing trait methods as private)
3--FILE--
4<?php
5
6trait myTrait {
7     public function run() {}
8}
9
10class myClass {
11     use myTrait {
12         MyTrait::run as private;
13     }
14}
15$class = new \ReflectionClass('myClass');
16var_dump($class->getTraitAliases());
17
18?>
19--EXPECT--
20array(0) {
21}
22