1616 */
1717class MatchStage extends Stage
1818{
19- /** @var Expr */
20- protected $ query ;
19+ protected Expr $ query ;
2120
2221 public function __construct (Builder $ builder )
2322 {
@@ -26,7 +25,7 @@ public function __construct(Builder $builder)
2625 $ this ->query = $ this ->expr ();
2726 }
2827
29- public function __clone ()
28+ public function __clone (): void
3029 {
3130 $ this ->query = clone $ this ->query ;
3231 }
@@ -43,7 +42,7 @@ public function __clone()
4342 * @param mixed[]|Expr $expression
4443 * @param mixed[]|Expr ...$expressions
4544 */
46- public function addAnd ($ expression , ...$ expressions ): static
45+ public function addAnd (array | Expr $ expression , array | Expr ...$ expressions ): static
4746 {
4847 $ this ->query ->addAnd (...func_get_args ());
4948
@@ -62,7 +61,7 @@ public function addAnd($expression, ...$expressions): static
6261 * @param mixed[]|Expr $expression
6362 * @param mixed[]|Expr ...$expressions
6463 */
65- public function addNor ($ expression , ...$ expressions ): static
64+ public function addNor (array | Expr $ expression , array | Expr ...$ expressions ): static
6665 {
6766 $ this ->query ->addNor (...func_get_args ());
6867
@@ -81,7 +80,7 @@ public function addNor($expression, ...$expressions): static
8180 * @param mixed[]|Expr $expression
8281 * @param mixed[]|Expr ...$expressions
8382 */
84- public function addOr ($ expression , ...$ expressions ): static
83+ public function addOr (array | Expr $ expression , array | Expr ...$ expressions ): static
8584 {
8685 $ this ->query ->addOr (...func_get_args ());
8786
@@ -114,7 +113,7 @@ public function all(array $values): static
114113 *
115114 * @param mixed[]|Expr $expression
116115 */
117- public function elemMatch ($ expression ): static
116+ public function elemMatch (array | Expr $ expression ): static
118117 {
119118 $ this ->query ->elemMatch ($ expression );
120119
@@ -128,7 +127,7 @@ public function elemMatch($expression): static
128127 *
129128 * @param mixed $value
130129 */
131- public function equals ($ value ): static
130+ public function equals (mixed $ value ): static
132131 {
133132 $ this ->query ->equals ($ value );
134133
@@ -180,7 +179,7 @@ public function field(string $field): static
180179 *
181180 * @param array<string, mixed>|Geometry $geometry
182181 */
183- public function geoIntersects ($ geometry ): static
182+ public function geoIntersects (array | Geometry $ geometry ): static
184183 {
185184 $ this ->query ->geoIntersects ($ geometry );
186185
@@ -272,7 +271,7 @@ public function geoWithinCenterSphere(float $x, float $y, float $radius): static
272271 * @param array{int|float, int|float} $point3 Third point of the polygon
273272 * @param array{int|float, int|float} ...$points Additional points of the polygon
274273 */
275- public function geoWithinPolygon ($ point1 , $ point2 , $ point3 , ...$ points ): static
274+ public function geoWithinPolygon (array $ point1 , array $ point2 , array $ point3 , array ...$ points ): static
276275 {
277276 $ this ->query ->geoWithinPolygon (...func_get_args ());
278277
@@ -298,7 +297,7 @@ public function getExpression(): ?array
298297 *
299298 * @param mixed $value
300299 */
301- public function gt ($ value ): static
300+ public function gt (mixed $ value ): static
302301 {
303302 $ this ->query ->gt ($ value );
304303
@@ -313,7 +312,7 @@ public function gt($value): static
313312 *
314313 * @param mixed $value
315314 */
316- public function gte ($ value ): static
315+ public function gte (mixed $ value ): static
317316 {
318317 $ this ->query ->gte ($ value );
319318
@@ -365,7 +364,7 @@ public function language(string $language): static
365364 *
366365 * @param mixed $value
367366 */
368- public function lt ($ value ): static
367+ public function lt (mixed $ value ): static
369368 {
370369 $ this ->query ->lt ($ value );
371370
@@ -380,7 +379,7 @@ public function lt($value): static
380379 *
381380 * @param mixed $value
382381 */
383- public function lte ($ value ): static
382+ public function lte (mixed $ value ): static
384383 {
385384 $ this ->query ->lte ($ value );
386385
@@ -396,7 +395,7 @@ public function lte($value): static
396395 * @param float|int $divisor
397396 * @param float|int $remainder
398397 */
399- public function mod ($ divisor , $ remainder = 0 ): static
398+ public function mod (float | int $ divisor , float | int $ remainder = 0 ): static
400399 {
401400 $ this ->query ->mod ($ divisor , $ remainder );
402401
@@ -414,7 +413,7 @@ public function mod($divisor, $remainder = 0): static
414413 *
415414 * @param mixed[]|Expr $expression
416415 */
417- public function not ($ expression ): static
416+ public function not (array | Expr $ expression ): static
418417 {
419418 $ this ->query ->not ($ expression );
420419
@@ -429,7 +428,7 @@ public function not($expression): static
429428 *
430429 * @param mixed $value
431430 */
432- public function notEqual ($ value ): static
431+ public function notEqual (mixed $ value ): static
433432 {
434433 $ this ->query ->notEqual ($ value );
435434
@@ -462,7 +461,7 @@ public function notIn(array $values): static
462461 * @param mixed $start
463462 * @param mixed $end
464463 */
465- public function range ($ start , $ end ): static
464+ public function range (mixed $ start , mixed $ end ): static
466465 {
467466 $ this ->query ->range ($ start , $ end );
468467
@@ -514,7 +513,7 @@ public function text(string $search): static
514513 *
515514 * @param int|string $type
516515 */
517- public function type ($ type ): static
516+ public function type (int | string $ type ): static
518517 {
519518 $ this ->query ->type ($ type );
520519
0 commit comments