@@ -301,12 +301,10 @@ public function getClassNameResolver(): ClassNameResolver
301
301
* Returns the metadata for a class.
302
302
*
303
303
* @param string $className The class name.
304
- * @psalm-param class-string<T> $className
305
304
*
305
+ * @psalm-param class-string<T> $className
306
306
* @psalm-return ClassMetadata<T>
307
- *
308
307
* @template T of object
309
- *
310
308
* @psalm-suppress InvalidReturnType, InvalidReturnStatement see https://github.com/vimeo/psalm/issues/5788
311
309
*/
312
310
public function getClassMetadata ($ className ): ClassMetadata
@@ -571,11 +569,11 @@ public function unlock(object $document): void
571
569
* Gets the repository for a document class.
572
570
*
573
571
* @param string $className The name of the Document.
574
- * @psalm-param class-string<T> $className
575
572
*
576
573
* @return DocumentRepository|GridFSRepository|ViewRepository The repository.
577
- * @psalm-return DocumentRepository<T>|GridFSRepository<T>|ViewRepository<T>
578
574
*
575
+ * @psalm-param class-string<T> $className
576
+ * @psalm-return DocumentRepository<T>|GridFSRepository<T>|ViewRepository<T>
579
577
* @template T of object
580
578
*/
581
579
public function getRepository ($ className )
@@ -589,9 +587,10 @@ public function getRepository($className)
589
587
* database.
590
588
*
591
589
* @param array $options Array of options to be used with batchInsert(), update() and remove()
592
- * @psalm-param CommitOptions $options
593
590
*
594
591
* @throws MongoDBException
592
+ *
593
+ * @psalm-param CommitOptions $options
595
594
*/
596
595
public function flush (array $ options = [])
597
596
{
@@ -608,10 +607,9 @@ public function flush(array $options = [])
608
607
* loads itself on first access.
609
608
*
610
609
* @param mixed $identifier
611
- * @psalm-param class-string<T> $documentName
612
610
*
611
+ * @psalm-param class-string<T> $documentName
613
612
* @psalm-return T|(T&GhostObjectInterface<T>)
614
- *
615
613
* @template T of object
616
614
*/
617
615
public function getReference (string $ documentName , $ identifier ): object
@@ -677,10 +675,9 @@ public function getPartialReference(string $documentName, $identifier): object
677
675
* @param mixed $id
678
676
* @param int $lockMode
679
677
* @param int $lockVersion
680
- * @psalm-param class-string<T> $className
681
678
*
679
+ * @psalm-param class-string<T> $className
682
680
* @psalm-return T|null
683
- *
684
681
* @template T of object
685
682
*/
686
683
public function find ($ className , $ id , $ lockMode = LockMode::NONE , $ lockVersion = null ): ?object
0 commit comments