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 268c79e commit c60c1e2Copy full SHA for c60c1e2
src/test/php/lang/ast/unittest/emit/AnnotationSupport.class.php
@@ -74,6 +74,12 @@ public function closure_value() {
74
Assert::equals('test', $verify[0]('test'));
75
}
76
77
+ #[Test]
78
+ public function first_class_callable_value() {
79
+ $verify= $this->annotations($this->declare('#[Verify(strtoupper(...))]'))['Verify'];
80
+ Assert::equals('TEST', $verify[0]('test'));
81
+ }
82
+
83
#[Test]
84
public function arrow_function_value() {
85
$verify= $this->annotations($this->declare('#[Verify(fn($arg) => $arg)]'))['Verify'];
0 commit comments