mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
20 lines
429 B
Plaintext
20 lines
429 B
Plaintext
|
--TEST--
|
||
|
Bug #36308 (ReflectionProperty::getDocComment() does not reflect extended class commentary)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
class Base {
|
||
|
/** Base comment block */
|
||
|
public $foo = 'bar';
|
||
|
}
|
||
|
|
||
|
class Extended extends Base {
|
||
|
/** Extended commentary */
|
||
|
public $foo = 'zim';
|
||
|
}
|
||
|
|
||
|
$reflect = new ReflectionClass('Extended');
|
||
|
$props = $reflect->getProperties();
|
||
|
echo $props[0]->getDocComment();
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
/** Extended commentary */
|