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 d55f016 commit 86e0677Copy full SHA for 86e0677
src/test/php/lang/ast/syntax/php/unittest/CompactMethodsTest.class.php
@@ -54,10 +54,18 @@ public function cannot_redeclare() {
54
}
55
56
#[@test]
57
- public function annotations() {
+ public function method_annotations() {
58
$t= $this->type('class <T> {
59
<<test>> public fn fixture() => "test";
60
}');
61
Assert::equals(['test' => null], $t->getMethod('fixture')->getAnnotations());
62
63
+
64
+ #[@test]
65
+ public function param_annotations() {
66
+ $t= $this->type('class <T> {
67
+ public fn fixture(<<test>> $a) => "test";
68
+ }');
69
+ Assert::equals(['test' => null], $t->getMethod('fixture')->getParameter(0)->getAnnotations());
70
+ }
71
0 commit comments