Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Oct 9, 2024
1 parent 56fe112 commit 64904ba
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/ODM/MongoDB/Aggregation/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
* Fluent interface for building aggregation pipelines.
*
* @phpstan-import-type SortShape from Sort
* @phpstan-import-type StageExpression from Stage
* @phpstan-type PipelineExpression list<array<string, mixed>>
* @phpstan-type StageExpression array<string, mixed>
* @phpstan-type PipelineExpression list<StageExpression>
*/
class Builder
{
Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/ODM/MongoDB/Aggregation/Stage.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
*
* @internal
*
* @phpstan-type PipelineExpression list<array<string, mixed>>
* @phpstan-type StageExpression array<string, mixed>
* @phpstan-import-type PipelineExpression from Builder
* @phpstan-import-type StageExpression from Builder
*/
abstract class Stage
{
Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Lookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
* @phpstan-import-type PipelineExpression from Builder
* @phpstan-type PipelineParamType Builder|Stage|PipelineExpression
* @phpstan-type LookupStageExpression array{
* "$lookup": array{
* '$lookup': array{
* from: string,
* 'as'?: string,
* localField?: string,
* foreignField?: string,
* pipeline?: PipelineExpression,
* let?: array<string, mixed>,
* }
* }
* }
*/
class Lookup extends Stage
{
Expand Down
3 changes: 1 addition & 2 deletions lib/Doctrine/ODM/MongoDB/DocumentManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -653,11 +653,10 @@ public function getPartialReference(string $documentName, $identifier): object
*
* This is just a convenient shortcut for getRepository($documentName)->find($id).
*
* @param string $className
* @param class-string<T> $className
* @param mixed $id
* @param int $lockMode
* @param int $lockVersion
* @param class-string<T> $className
*
* @return T|null
*
Expand Down
3 changes: 1 addition & 2 deletions lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -2014,8 +2014,7 @@ public function isInheritanceTypeCollectionPerClass(): bool
/**
* Sets the mapped subclasses of this class.
*
* @param string[] $subclasses The names of all mapped subclasses.
* @param class-string[] $subclasses
* @param class-string[] $subclasses The names of all mapped subclasses.
*/
public function setSubclasses(array $subclasses): void
{
Expand Down

0 comments on commit 64904ba

Please sign in to comment.