- Output for 5.4.0 - 5.4.10
- Fatal error: Declaration of Foo_Bar::__construct() must be compatible with Foo::__construct() in Tnmm1 on line 10
Process exited with code 255. - Output for 5.3.0 - 5.3.29
<?php
error_reporting(E_ALL);
abstract class Foo {
abstract public function __construct();
}
class Foo_Bar extends Foo {
public function __construct($foo,$bar = null){}
}
$fooBar = new Foo_Bar('foo');