InvalidTagValueNode when parsing Doctrine annotations
sylfabre opened this issue · 4 comments
sylfabre commented
Hello
This annotation is parsed as InvalidTagValueNode with version 1.23.0 while is worked correctly with version 1.17.1
use ApiPlatform\Core\Annotation\ApiResource;
/**
* @ApiResource(
* itemOperations={
* "get"={
* "security"="is_granted(
constant('REDACTED'),
object
)",
* "normalization_context"={"groups"={"Redacted:read"}}
* }
* }
* )
*/
class OrganizationApiDto {}
This is important for us as it makes UnusedUsesSniff report false-positives in a similar way as #205
sylfabre commented
I found out that v1.22.0 introduced the regression
ondrejmirtes commented
Fixed: 5745775
sylfabre commented
Thanks a lot @ondrejmirtes you rock!
github-actions commented
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.