php-8.0.30-src/tests/classes/inheritance_008.phpt

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