<?php
interface Foo
{
public function test(array $x, $y=0);
}
interface Bar
{
public function test(array $x, $y);
}
//interface Baz extends Foo, Bar {}
interface Baz extends Bar, Foo {}
Fatal error: Declaration of Bar::test(array $x, $y) must be compatible with Foo::test(array $x, $y = 0) in /in/EZiqk on line 10
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Warning: Declaration of Bar::test(array $x, $y) should be compatible with Foo::test(array $x, $y = 0) in /in/EZiqk on line 10
Fatal error: Declaration of Bar::test(array $x, $y) must be compatible with Foo::test(array $x, $y = 0) in /in/EZiqk on line 15
Process exited with code 255.