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 f7c5e3f commit 48cea29Copy full SHA for 48cea29
src/test/php/lang/ast/unittest/emit/InitializeWithNewTest.class.php
@@ -81,4 +81,26 @@ public function run($h= self::$h) {
81
}');
82
Assert::equals(new Handle(0), $r);
83
}
84
+
85
+ #[Test]
86
+ public function typed_proprety() {
87
+ $r= $this->run('use lang\ast\unittest\emit\Handle; class <T> {
88
+ private Handle $h= new Handle(0);
89
90
+ public function run() {
91
+ return $this->h;
92
+ }
93
+ }');
94
+ Assert::equals(new Handle(0), $r);
95
96
97
98
+ public function typed_parameter() {
99
100
+ public function run(Handle $h= new Handle(0)) {
101
+ return $h;
102
103
104
105
106
0 commit comments