blob: fd3e7fa9d0ee5708f5f5c37d89927ad76174c74d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--TEST--
__set_state return type should support covariance
--FILE--
<?php
class Foo {
public static function __set_state(array $data): self {}
}
class Foo2 {
public static function __set_state(array $data): static {}
}
class Foo3 {
public static function __set_state(array $data): Foo3|self {}
}
?>
===DONE===
--EXPECT--
===DONE===
|