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 a3a8843 commit 006b8a1Copy full SHA for 006b8a1
docs/en/index.rst
@@ -73,7 +73,7 @@ annotations of a class. A common one is
73
$property = $reflectionClass->getProperty('bar');
74
75
$reader = new AnnotationReader();
76
- $myAnnotation = $reader->getPropertyAnnotation($property, 'bar');
+ $myAnnotation = $reader->getPropertyAnnotation($property, MyAnnotation::class);
77
78
echo $myAnnotation->myProperty; // result: "value"
79
0 commit comments