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