- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.20
- Fatal error: Access level to Bar::setThis() must be public (as in class Foo) in /in/irD0H on line 14
Process exited with code 255.
<?php
class Foo {
public function setThis()
{
}
}
class Bar extends Foo {
private function setThis()
{
return 'hello';
}
}
$Bar = new Bar;