@@ -472,17 +472,18 @@ private function parseTypeAliasImportTagValue(TokenIterator $tokens): Ast\PhpDoc
472
472
private function parseAssertTagValue (TokenIterator $ tokens ): Ast \PhpDoc \PhpDocTagValueNode
473
473
{
474
474
$ isNegated = $ tokens ->tryConsumeTokenType (Lexer::TOKEN_NEGATED );
475
+ $ isEquality = $ tokens ->tryConsumeTokenType (Lexer::TOKEN_EQUAL );
475
476
$ type = $ this ->typeParser ->parse ($ tokens );
476
477
$ parameter = $ this ->parseAssertParameter ($ tokens );
477
478
$ description = $ this ->parseOptionalDescription ($ tokens );
478
479
479
480
if (array_key_exists ('method ' , $ parameter )) {
480
- return new Ast \PhpDoc \AssertTagMethodValueNode ($ type , $ parameter ['parameter ' ], $ parameter ['method ' ], $ isNegated , $ description );
481
+ return new Ast \PhpDoc \AssertTagMethodValueNode ($ type , $ parameter ['parameter ' ], $ parameter ['method ' ], $ isNegated , $ description, $ isEquality );
481
482
} elseif (array_key_exists ('property ' , $ parameter )) {
482
- return new Ast \PhpDoc \AssertTagPropertyValueNode ($ type , $ parameter ['parameter ' ], $ parameter ['property ' ], $ isNegated , $ description );
483
+ return new Ast \PhpDoc \AssertTagPropertyValueNode ($ type , $ parameter ['parameter ' ], $ parameter ['property ' ], $ isNegated , $ description, $ isEquality );
483
484
}
484
485
485
- return new Ast \PhpDoc \AssertTagValueNode ($ type , $ parameter ['parameter ' ], $ isNegated , $ description );
486
+ return new Ast \PhpDoc \AssertTagValueNode ($ type , $ parameter ['parameter ' ], $ isNegated , $ description, $ isEquality );
486
487
}
487
488
488
489
/**
0 commit comments