blob: 07696210c503836c76c4ec9b5d944227d549a811 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--TEST--
Bug #77772: ReflectionClass::getMethods(null) doesn't work
--FILE--
<?php
class Test {
public $prop;
public function method() {}
}
$rc = new ReflectionClass(Test::class);
foreach ($rc->getMethods(null) as $method) {
var_dump($method->getName());
}
foreach ($rc->getProperties(null) as $prop) {
var_dump($prop->getName());
}
?>
--EXPECT--
string(6) "method"
string(4) "prop"
|