@@ -279,9 +279,10 @@ public function getClassNameResolver(): ClassNameResolver
279
279
* Returns the metadata for a class.
280
280
*
281
281
* @param string $className The class name.
282
- *
283
282
* @psalm-param class-string<T> $className
283
+ *
284
284
* @psalm-return ClassMetadata<T>
285
+ *
285
286
* @template T of object
286
287
* @psalm-suppress InvalidReturnType, InvalidReturnStatement see https://github.com/vimeo/psalm/issues/5788
287
288
*/
@@ -547,11 +548,11 @@ public function unlock(object $document): void
547
548
* Gets the repository for a document class.
548
549
*
549
550
* @param string $className The name of the Document.
551
+ * @psalm-param class-string<T> $className
550
552
*
551
553
* @return DocumentRepository|GridFSRepository|ViewRepository The repository.
552
- *
553
- * @psalm-param class-string<T> $className
554
554
* @psalm-return DocumentRepository<T>|GridFSRepository<T>|ViewRepository<T>
555
+ *
555
556
* @template T of object
556
557
*/
557
558
public function getRepository ($ className )
@@ -565,10 +566,9 @@ public function getRepository($className)
565
566
* database.
566
567
*
567
568
* @param array $options Array of options to be used with batchInsert(), update() and remove()
569
+ * @psalm-param CommitOptions $options
568
570
*
569
571
* @throws MongoDBException
570
- *
571
- * @psalm-param CommitOptions $options
572
572
*/
573
573
public function flush (array $ options = [])
574
574
{
@@ -585,9 +585,10 @@ public function flush(array $options = [])
585
585
* loads itself on first access.
586
586
*
587
587
* @param mixed $identifier
588
- *
589
588
* @psalm-param class-string<T> $documentName
589
+ *
590
590
* @psalm-return T|(T&GhostObjectInterface<T>)
591
+ *
591
592
* @template T of object
592
593
*/
593
594
public function getReference (string $ documentName , $ identifier ): object
@@ -655,9 +656,10 @@ public function getPartialReference(string $documentName, $identifier): object
655
656
* @param mixed $id
656
657
* @param int $lockMode
657
658
* @param int $lockVersion
658
- *
659
659
* @psalm-param class-string<T> $className
660
+ *
660
661
* @psalm-return T|null
662
+ *
661
663
* @template T of object
662
664
*/
663
665
public function find ($ className , $ id , $ lockMode = LockMode::NONE , $ lockVersion = null ): ?object
0 commit comments