Skip to content

Commit

Permalink
Merge pull request #2449 from franmomu/specify_class_string
Browse files Browse the repository at this point in the history
Specify class-string return type
  • Loading branch information
malarzm committed May 22, 2022
2 parents 9066f03 + aec4e08 commit 8f968ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -2115,6 +2115,8 @@ public function getTypeOfField($fieldName): ?string

/**
* @param string $assocName
*
* @psalm-return class-string|null
*/
public function getAssociationTargetClass($assocName): ?string
{
Expand All @@ -2127,6 +2129,8 @@ public function getAssociationTargetClass($assocName): ?string

/**
* Retrieve the collectionClass associated with an association
*
* @psalm-return class-string
*/
public function getAssociationCollectionClass(string $assocName): string
{
Expand Down

0 comments on commit 8f968ba

Please sign in to comment.