- Output for 8.1.32, 8.2.0 - 8.2.29, 8.3.0 - 8.3.26, 8.4.1 - 8.4.13
- Fatal error: Declaration of Foo::__construct(string $a) must be compatible with Constr2::__construct(int $a) in /in/easGk on line 15
Process exited with code 255.
<?php
interface Constr {
public function __construct(string $a);
public function method(string $b): void;
}
interface Constr2 {
public function __construct(int $a);
}
class Foo implements Constr,Constr2 {
public function __construct(string $a)
{
}
public function method(string $b): void
{
}
}