blob: b813c4c1f7309f3424659277a1e8365180ea1c6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--TEST--
LSP checks are performed against an abstract constructor even if it is not a direct parent
--FILE--
<?php
abstract class A {
abstract function __construct(X $x);
}
class B extends A {
function __construct(X $x) {}
}
class C extends B {
function __construct() {}
}
?>
--EXPECTF--
Fatal error: Declaration of C::__construct() must be compatible with A::__construct(X $x) in %s on line 10
|