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.
2 parents ed80c92 + 9afa196 commit 81960a3Copy full SHA for 81960a3
Zend/tests/return_hint/015.phpt
@@ -0,0 +1,26 @@
1
+--TEST--
2
+Namespaced Inheritance
3
+
4
+--FILE--
5
+<?php
6
7
+namespace Collections;
8
9
+interface Collection {
10
+ function values(): Collection;
11
+}
12
13
+class Vector implements Collection {
14
+ function values(): Collection {
15
+ return $this;
16
+ }
17
18
19
+$v = new Vector;
20
+var_dump($v->values());
21
22
+--EXPECTF--
23
+object(\Collections\Vector)#%d (%d) {
24
25
26
0 commit comments