- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.6
- Fatal error: Access level to B::test() must be protected (as in class A) or weaker in /in/oqhnk on line 14
Process exited with code 255.
<?php
abstract class A
{
abstract protected function test($a, $b);
}
class B extends A
{
private function test($a, $b, $c=0)
{
return;
}
}