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 20f991c commit 4665ed2Copy full SHA for 4665ed2
Zend/tests/traits/constant_002.phpt
@@ -8,7 +8,6 @@ trait TestTrait1 {
8
}
9
10
trait TestTrait2 {
11
- use TestTrait1;
12
public const A = 42;
13
14
@@ -17,13 +16,26 @@ trait TestTrait3 {
17
16
18
19
20
-class ComposingClass {
+class ComposingClass1 {
+ use TestTrait1;
21
+ use TestTrait2;
22
+}
23
+
24
+class ComposingClass2 {
25
26
+ use TestTrait3;
27
28
29
+class ComposingClass3 {
30
use TestTrait1;
31
use TestTrait3;
32
33
34
-echo ComposingClass::A, PHP_EOL;
35
+echo ComposingClass1::A, PHP_EOL;
36
+echo ComposingClass2::A, PHP_EOL;
37
+echo ComposingClass3::A, PHP_EOL;
38
?>
39
--EXPECTF--
40
42
41
+42
0 commit comments