- Output for 8.1.0 - 8.1.29, 8.2.0 - 8.2.22, 8.3.0 - 8.3.10
- Fatal error: Declaration of C::foo(int $foo) must be compatible with A::foo(int $foo = 42) in /in/SEsRm on line 12
Process exited with code 255.
<?php
class A {
public function foo(int $foo=42) {}
}
class B extends A {
public function foo(int $foo=101) {}
}
class C extends A {
public function foo(int $foo) {}
}