<?php
interface FooInterface {
public function bar(\StdClass $objec);
}
class Foo {
public function bar(\StdClass $objec) {
}
}
class Bar extends Foo {
public function bar(\StdClass $object, array $array) {
}
}
Fatal error: Declaration of Bar::bar(StdClass $object, array $array) must be compatible with Foo::bar(StdClass $objec) in /in/AO0vt on line 14
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Bar has a deprecated constructor in /in/AO0vt on line 13
Warning: Declaration of Bar::bar(StdClass $object, array $array) should be compatible with Foo::bar(StdClass $objec) in /in/AO0vt on line 14
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Bar has a deprecated constructor in /in/AO0vt on line 13