Skip to content

Commit 09a2648

Browse files
authored
Fix doc blocks on ID generators (#9368)
1 parent ee59119 commit 09a2648

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

lib/Doctrine/ORM/Id/AbstractIdGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function generateId(EntityManagerInterface $em, $entity)
7878

7979
/**
8080
* Gets whether this generator is a post-insert generator which means that
81-
* {@link generate()} must be called after the entity has been inserted
81+
* {@link generateId()} must be called after the entity has been inserted
8282
* into the database.
8383
*
8484
* By default, this method returns FALSE. Generators that have this requirement

lib/Doctrine/ORM/Id/BigIntegerIdentityGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class BigIntegerIdentityGenerator extends AbstractIdGenerator
1616
/**
1717
* The name of the sequence to pass to lastInsertId(), if any.
1818
*
19-
* @var string
19+
* @var string|null
2020
*/
2121
private $sequenceName;
2222

psalm-baseline.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -508,11 +508,6 @@
508508
<code>$entity</code>
509509
</PossiblyNullArgument>
510510
</file>
511-
<file src="lib/Doctrine/ORM/Id/BigIntegerIdentityGenerator.php">
512-
<PossiblyNullPropertyAssignmentValue occurrences="1">
513-
<code>$sequenceName</code>
514-
</PossiblyNullPropertyAssignmentValue>
515-
</file>
516511
<file src="lib/Doctrine/ORM/Id/TableGenerator.php">
517512
<PossiblyFalseOperand occurrences="3">
518513
<code>$currentLevel</code>

0 commit comments

Comments
 (0)