mirror of
https://github.com/php/php-src.git
synced 2026-04-21 15:08:16 +02:00
1435fc6262
Fix GH-9409 Closes GH-9469
25 lines
475 B
PHP
25 lines
475 B
PHP
--TEST--
|
|
GH-9409: Private method is incorrectly dumped as "overwrites"
|
|
--FILE--
|
|
<?php
|
|
|
|
class A {
|
|
private function privateMethod() {}
|
|
}
|
|
|
|
class C extends A {
|
|
private function privateMethod() {}
|
|
}
|
|
|
|
echo (new ReflectionClass('A'))->getMethod('privateMethod');
|
|
echo (new ReflectionClass('C'))->getMethod('privateMethod');
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Method [ <user> private method privateMethod ] {
|
|
@@ %s %d - %d
|
|
}
|
|
Method [ <user> private method privateMethod ] {
|
|
@@ %s %d - %d
|
|
}
|