- Output for 8.1.1 - 8.1.28, 8.2.10 - 8.2.18, 8.3.0 - 8.3.6
- Fatal error: Declaration of Bar::__construct(int $bar) must be compatible with Foo::__construct() in /in/jfIi7o on line 8
Process exited with code 255.
<?php
interface Foo {
public function __construct();
}
class Bar implements Foo {
public function __construct(int $bar) { }
}