<?php
echo $toto;
set_error_handler(function($no, $str, $file, $line) {
echo $no;
});
class Foo
{
public function method(array $array)
{
}
}
class Bar extends Foo
{
public function method(Toto $array)
{
}
}
echo $a;
$bar = new Bar();
Fatal error: Declaration of Bar::method(Toto $array) must be compatible with Foo::method(array $array) in /in/bnsp0 on line 19
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Warning: Declaration of Bar::method(Toto $array) should be compatible with Foo::method(array $array) in /in/bnsp0 on line 19
Notice: Undefined variable: toto in /in/bnsp0 on line 3
8
Output for 7.3.32 - 7.3.33
Warning: Declaration of Bar::method(Toto $array) should be compatible with Foo::method(array $array) in /in/bnsp0 on line 23
8
Warning: Declaration of Bar::method(Toto $array) should be compatible with Foo::method(array $array) in /in/bnsp0 on line 23
Notice: Undefined variable: toto in /in/bnsp0 on line 3
8
Strict Standards: Declaration of Bar::method() should be compatible with Foo::method(array $array) in /in/bnsp0 on line 23
Notice: Undefined variable: toto in /in/bnsp0 on line 3
8
Output for 5.3.0 - 5.3.29
Strict Standards: Declaration of Bar::method() should be compatible with that of Foo::method() in /in/bnsp0 on line 23
Notice: Undefined variable: toto in /in/bnsp0 on line 3
8