Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some phpdoc #2313

Merged
merged 4 commits into from
May 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Doctrine/ODM/MongoDB/Aggregation/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ public function redact(): Stage\Redact
* including the _id field. You can promote an existing embedded document to
* the top level, or create a new document for promotion.
*
* @param string|array|null $expression Optional. A replacement expression that
* @param string|array|Expr|null $expression Optional. A replacement expression that
* resolves to a document.
*/
public function replaceRoot($expression = null): Stage\ReplaceRoot
Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/ODM/MongoDB/Aggregation/Stage/AbstractBucket.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ abstract class AbstractBucket extends Stage
/** @var Bucket\AbstractOutput|null */
protected $output;

/** @var Expr|array */
/** @var Expr|array|string */
protected $groupBy;

public function __construct(Builder $builder, DocumentManager $documentManager, ClassMetadata $class)
Expand All @@ -48,7 +48,7 @@ public function __construct(Builder $builder, DocumentManager $documentManager,
* An expression to group documents by. To specify a field path, prefix the
* field name with a dollar sign $ and enclose it in quotes.
*
* @param array|Expr $expression
* @param array|Expr|string $expression
*/
public function groupBy($expression): self
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Bucket.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Bucket extends AbstractBucket
* boundaries. The specified values must be in ascending order and all of
* the same type. The exception is if the values are of mixed numeric types.
*
* @param array ...$boundaries
* @param mixed $boundaries
*/
public function boundaries(...$boundaries): self
{
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ODM/MongoDB/Aggregation/Stage/ReplaceRoot.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ReplaceRoot extends Operator
/** @var ClassMetadata */
private $class;

/** @var string|array|null */
/** @var string|array|Expr|null */
private $expression;

public function __construct(Builder $builder, DocumentManager $documentManager, ClassMetadata $class, $expression = null)
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
* the serialized representation).
*
* @final
* @template T of object
* @template-covariant T of object
* @template-implements BaseClassMetadata<T>
*/
/* final */ class ClassMetadata implements BaseClassMetadata
Expand Down