<?php
interface I{
function __construct(array $test);
}
trait T{
function __construct(array $test){
}
}
class Mother implements I{
use T;
}
class Children extends Mother{
function __construct(){
}
}
$children=new Children();
$mother = new Mother();
Fatal error: Declaration of Children::__construct() must be compatible with I::__construct(array $test) in /in/Z58U2 on line 17
Process exited with code 255.
Fatal error: Declaration of Children::__construct() must be compatible with I::__construct(array $test) in /in/Z58U2 on line 16
Process exited with code 255.
Output for 7.0.0 - 7.0.5
Fatal error: Uncaught TypeError: Argument 1 passed to Mother::__construct() must be of the type array, none given, called in /in/Z58U2 on line 23 and defined in /in/Z58U2:7
Stack trace:
#0 /in/Z58U2(23): Mother->__construct()
#1 {main}
thrown in /in/Z58U2 on line 7
Process exited with code 255.
Catchable fatal error: Argument 1 passed to Mother::__construct() must be of the type array, none given, called in /in/Z58U2 on line 23 and defined in /in/Z58U2 on line 7
Process exited with code 255.