We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bf0dd7 commit ac74551Copy full SHA for ac74551
Zend/tests/type_declarations/intersection_types/added_interface_intersection_type.phpt
@@ -21,29 +21,15 @@ function bar(X&Y $o): void {
21
var_dump($o);
22
}
23
24
-try {
25
- $o = foo();
26
- var_dump($o);
27
-} catch (\TypeError $e) {
28
- echo $e->getMessage(), "\n";
29
-}
+$o = foo();
+var_dump($o);
30
31
$c = new Collection();
32
$a = new A();
33
34
35
- $c->intersect = $a;
36
- echo 'OK', \PHP_EOL;
37
38
39
40
-
41
42
- bar($a);
43
44
45
46
+$c->intersect = $a;
+echo 'OK', \PHP_EOL;
+bar($a);
47
?>
48
--EXPECT--
49
object(A)#1 (0) {
0 commit comments