-
-
Notifications
You must be signed in to change notification settings - Fork 505
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
47 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,7 +105,7 @@ public function clear(): void | |
* | ||
* @param mixed $id Identifier. | ||
* | ||
* @phpstan-return T|null | ||
* @return T|null | ||
* | ||
* @throws MappingException | ||
* @throws LockException | ||
|
@@ -185,14 +185,14 @@ public function findBy(array $criteria, ?array $orderBy = null, $limit = null, $ | |
* @param array<string, mixed> $criteria | ||
* | ||
* @return object|null The object. | ||
* @phpstan-return T|null | ||
* @return T|null | ||
Check failure on line 188 in lib/Doctrine/ODM/MongoDB/Repository/DocumentRepository.php GitHub Actions / Coding Standards / Coding Standards (8.3)
|
||
*/ | ||
public function findOneBy(array $criteria, ?array $sort = null): ?object | ||
{ | ||
return $this->getDocumentPersister()->load($criteria, null, [], 0, $sort); | ||
} | ||
|
||
/** @phpstan-return class-string<T> */ | ||
/** @return class-string<T> */ | ||
public function getDocumentName(): string | ||
{ | ||
return $this->documentName; | ||
|
@@ -203,13 +203,13 @@ public function getDocumentManager(): DocumentManager | |
return $this->dm; | ||
} | ||
|
||
/** @phpstan-return ClassMetadata<T> */ | ||
/** @return ClassMetadata<T> */ | ||
public function getClassMetadata(): ClassMetadata | ||
{ | ||
return $this->class; | ||
} | ||
|
||
/** @phpstan-return class-string<T> */ | ||
/** @return class-string<T> */ | ||
public function getClassName(): string | ||
{ | ||
return $this->getDocumentName(); | ||
|
@@ -251,7 +251,7 @@ public function matching(Criteria $criteria): ArrayCollection | |
return new ArrayCollection($iterator->toArray()); | ||
} | ||
|
||
/** @phpstan-return DocumentPersister<T> */ | ||
/** @return DocumentPersister<T> */ | ||
protected function getDocumentPersister(): DocumentPersister | ||
{ | ||
return $this->uow->getDocumentPersister($this->documentName); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters