Skip to content

Commit ad4e3fa

Browse files
authored
Merge pull request #1930 from alcaeus/fix-wrong-generator-typing
Fix wrong type hint for generator type in ClassMetadata
2 parents 4de0a04 + 1966210 commit ad4e3fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadataInfo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ class ClassMetadataInfo implements \Doctrine\Common\Persistence\Mapping\ClassMet
307307
/**
308308
* READ-ONLY: The Id generator type used by the class.
309309
*
310-
* @var string
310+
* @var int
311311
*/
312312
public $generatorType = self::GENERATOR_TYPE_AUTO;
313313

@@ -1943,7 +1943,7 @@ public function hasDiscriminator()
19431943
/**
19441944
* Sets the type of Id generator to use for the mapped class.
19451945
*
1946-
* @param string $generatorType Generator type.
1946+
* @param int $generatorType Generator type.
19471947
*/
19481948
public function setIdGeneratorType($generatorType)
19491949
{

0 commit comments

Comments
 (0)