phpstan/phpdoc-parser

InvalidTagValueNode when parsing Doctrine annotations

sylfabre opened this issue · 4 comments

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

I found out that v1.22.0 introduced the regression

Thanks a lot @ondrejmirtes you rock!

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.