php-src/tests/classes/inheritance_008.phpt
Pedro Magalhães 272b887b7b Ignore inheritance rules on private methods
Closes GH-5401
2020-07-15 17:09:57 +01:00

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