Skip to content

Commit

Permalink
Merge pull request #10229 from greg0ire/fix-phpdoc-exception
Browse files Browse the repository at this point in the history
Widen parameter type
  • Loading branch information
greg0ire committed Nov 14, 2022
2 parents 465c02f + 3178b4e commit fc3201b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Doctrine/ORM/Mapping/MappingException.php
Expand Up @@ -824,7 +824,8 @@ public static function invalidFetchMode($className, $annotation)
return new self("Entity '" . $className . "' has a mapping with invalid fetch mode '" . $annotation . "'");
}

public static function invalidGeneratedMode(string $annotation): MappingException
/** @param int|string $annotation */
public static function invalidGeneratedMode($annotation): MappingException
{
return new self("Invalid generated mode '" . $annotation . "'");
}
Expand Down

0 comments on commit fc3201b

Please sign in to comment.