Skip to content

Commit

Permalink
Fix doc blocks on ID generators (#9368)
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus authored Jan 12, 2022
1 parent ee59119 commit 09a2648
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Id/AbstractIdGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function generateId(EntityManagerInterface $em, $entity)

/**
* Gets whether this generator is a post-insert generator which means that
* {@link generate()} must be called after the entity has been inserted
* {@link generateId()} must be called after the entity has been inserted
* into the database.
*
* By default, this method returns FALSE. Generators that have this requirement
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Id/BigIntegerIdentityGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class BigIntegerIdentityGenerator extends AbstractIdGenerator
/**
* The name of the sequence to pass to lastInsertId(), if any.
*
* @var string
* @var string|null
*/
private $sequenceName;

Expand Down
5 changes: 0 additions & 5 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -508,11 +508,6 @@
<code>$entity</code>
</PossiblyNullArgument>
</file>
<file src="lib/Doctrine/ORM/Id/BigIntegerIdentityGenerator.php">
<PossiblyNullPropertyAssignmentValue occurrences="1">
<code>$sequenceName</code>
</PossiblyNullPropertyAssignmentValue>
</file>
<file src="lib/Doctrine/ORM/Id/TableGenerator.php">
<PossiblyFalseOperand occurrences="3">
<code>$currentLevel</code>
Expand Down

0 comments on commit 09a2648

Please sign in to comment.