Closed as not planned
Description
Description
The following code:
<?php
class A
{
private $privateProperty = 1;
private function privateMethod() {}
}
class B extends A {}
$class = new ReflectionClass('B');
echo (string) $class;
Resulted in this output:
Class [ <user> class B extends A ] {
...
- Properties [0] {
}
- Methods [0] {
}
}
But I expected this output instead:
Class [ <user> class B extends A ] {
...
- Properties [1] {
Property [ private $privateProperty = 1 ]
}
- Methods [1] {
Method [ <user, inherits A> private method privateMethod ] {
@@ ...
}
}
}
PHP Version
PHP 8.0.22
Operating System
No response