Skip to content

Commit

Permalink
Override getAssociationTargetClass phpdoc (doctrine#8907)
Browse files Browse the repository at this point in the history
The upstream interface now allows null to be returned, but this
implementation never returns null, and consumers are expecting it not
to.
  • Loading branch information
VincentLanglet authored Aug 11, 2021
1 parent 1e2c0ce commit b19a13f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -3409,6 +3409,11 @@ public function getAssociationNames()
/**
* {@inheritDoc}
*
* @param string $assocName
*
* @return string
* @psalm-return class-string
*
* @throws InvalidArgumentException
*/
public function getAssociationTargetClass($assocName)
Expand Down

0 comments on commit b19a13f

Please sign in to comment.