Skip to content

Commit

Permalink
Merge pull request #9603 from greg0ire/int-mask-of
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire authored Mar 22, 2022
2 parents 0f04a82 + 80f65d6 commit 0f1c9ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Doctrine/ORM/Query/AST/PathExpression.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ class PathExpression extends Node
*/
public $type;

/** @var int */
/**
* @var int
* @psalm-var int-mask-of<self::TYPE_*>
*/
public $expectedType;

/** @var string */
Expand All @@ -38,6 +41,7 @@ class PathExpression extends Node
* @param int $expectedType
* @param string $identificationVariable
* @param string|null $field
* @psalm-param int-mask-of<self::TYPE_*> $expectedType
*/
public function __construct($expectedType, $identificationVariable, $field = null)
{
Expand Down
1 change: 1 addition & 0 deletions lib/Doctrine/ORM/Query/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1137,6 +1137,7 @@ public function JoinAssociationPathExpression()
* PathExpression ::= IdentificationVariable {"." identifier}*
*
* @param int $expectedTypes
* @psalm-param int-mask-of<PathExpression::TYPE_*> $expectedTypes
*
* @return PathExpression
*/
Expand Down

0 comments on commit 0f1c9ec

Please sign in to comment.