- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.24
- Fatal error: Access type for interface method test::test() must be omitted in /in/i4G8g on line 2
Process exited with code 255.
<?php
interface test { protected function test(); }
class a implements test { protected function test() { echo "testa"; } }
class b extends a { protected function test() { echo "testb"; } }
$b = new b();
$b->test();