Skip to content

Commit

Permalink
Specify class-string return type
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu committed May 22, 2022
1 parent 9066f03 commit aec4e08
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 aec4e08

Please sign in to comment.