mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
272b887b7b
Closes GH-5401
17 lines
310 B
PHP
17 lines
310 B
PHP
--TEST--
|
|
Ensure private methods with the same name are not checked for inheritance rules - static
|
|
--FILE--
|
|
<?php
|
|
class A {
|
|
static private function foo() { }
|
|
private function bar() {}
|
|
}
|
|
class B extends A {
|
|
private function foo() {}
|
|
static private function bar() {}
|
|
}
|
|
echo 'OK';
|
|
?>
|
|
--EXPECT--
|
|
OK
|