Failed Conditions
Pull Request — master (#6747)
by
unknown
31:18
created
lib/Doctrine/ORM/Query/Expr.php 1 patch
Doc Comments   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     /**
76 76
      * Creates an ASCending order expression.
77 77
      *
78
-     * @param mixed $expr
78
+     * @param string $expr
79 79
      *
80 80
      * @return Expr\OrderBy
81 81
      */
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     /**
88 88
      * Creates a DESCending order expression.
89 89
      *
90
-     * @param mixed $expr
90
+     * @param string $expr
91 91
      *
92 92
      * @return Expr\OrderBy
93 93
      */
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
      *     // u.id <> ?1
126 126
      *     $q->where($q->expr()->neq('u.id', '?1'));
127 127
      *
128
-     * @param mixed $x Left expression.
129
-     * @param mixed $y Right expression.
128
+     * @param string $x Left expression.
129
+     * @param string $y Right expression.
130 130
      *
131 131
      * @return Expr\Comparison
132 132
      */
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     /**
215 215
      * Creates an instance of AVG() function, with the given argument.
216 216
      *
217
-     * @param mixed $x Argument to be used in AVG() function.
217
+     * @param string $x Argument to be used in AVG() function.
218 218
      *
219 219
      * @return Expr\Func
220 220
      */
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     /**
227 227
      * Creates an instance of MAX() function, with the given argument.
228 228
      *
229
-     * @param mixed $x Argument to be used in MAX() function.
229
+     * @param string $x Argument to be used in MAX() function.
230 230
      *
231 231
      * @return Expr\Func
232 232
      */
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     /**
239 239
      * Creates an instance of MIN() function, with the given argument.
240 240
      *
241
-     * @param mixed $x Argument to be used in MIN() function.
241
+     * @param string $x Argument to be used in MIN() function.
242 242
      *
243 243
      * @return Expr\Func
244 244
      */
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
     /**
251 251
      * Creates an instance of COUNT() function, with the given argument.
252 252
      *
253
-     * @param mixed $x Argument to be used in COUNT() function.
253
+     * @param string $x Argument to be used in COUNT() function.
254 254
      *
255 255
      * @return Expr\Func
256 256
      */
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
     /**
263 263
      * Creates an instance of COUNT(DISTINCT) function, with the given argument.
264 264
      *
265
-     * @param mixed $x Argument to be used in COUNT(DISTINCT) function.
265
+     * @param string $x Argument to be used in COUNT(DISTINCT) function.
266 266
      *
267 267
      * @return string
268 268
      */
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
     /**
275 275
      * Creates an instance of EXISTS() function, with the given DQL Subquery.
276 276
      *
277
-     * @param mixed $subquery DQL Subquery to be used in EXISTS() function.
277
+     * @param \Doctrine\ORM\QueryBuilder $subquery DQL Subquery to be used in EXISTS() function.
278 278
      *
279 279
      * @return Expr\Func
280 280
      */
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
     /**
299 299
      * Creates a SOME() function expression with the given DQL subquery.
300 300
      *
301
-     * @param mixed $subquery DQL Subquery to be used in SOME() function.
301
+     * @param \Doctrine\ORM\QueryBuilder $subquery DQL Subquery to be used in SOME() function.
302 302
      *
303 303
      * @return Expr\Func
304 304
      */
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
     /**
311 311
      * Creates an ANY() function expression with the given DQL subquery.
312 312
      *
313
-     * @param mixed $subquery DQL Subquery to be used in ANY() function.
313
+     * @param \Doctrine\ORM\QueryBuilder $subquery DQL Subquery to be used in ANY() function.
314 314
      *
315 315
      * @return Expr\Func
316 316
      */
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
     /**
335 335
      * Creates an ABS() function expression with the given argument.
336 336
      *
337
-     * @param mixed $x Argument to be used in ABS() function.
337
+     * @param integer $x Argument to be used in ABS() function.
338 338
      *
339 339
      * @return Expr\Func
340 340
      */
@@ -346,8 +346,8 @@  discard block
 block discarded – undo
346 346
     /**
347 347
      * Creates a MOD($x, $y) function expression to return the remainder of $x divided by $y.
348 348
      *
349
-     * @param mixed $x
350
-     * @param mixed $y
349
+     * @param integer $x
350
+     * @param integer $y
351 351
      *
352 352
      * @return Expr\Func
353 353
      */
@@ -366,8 +366,8 @@  discard block
 block discarded – undo
366 366
      *     // u.salary * u.percentAnnualSalaryIncrease
367 367
      *     $q->expr()->prod('u.salary', 'u.percentAnnualSalaryIncrease')
368 368
      *
369
-     * @param mixed $x Left expression.
370
-     * @param mixed $y Right expression.
369
+     * @param integer $x Left expression.
370
+     * @param integer $y Right expression.
371 371
      *
372 372
      * @return Expr\Math
373 373
      */
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
      *     // u.monthlySubscriptionCount - 1
386 386
      *     $q->expr()->diff('u.monthlySubscriptionCount', '1')
387 387
      *
388
-     * @param mixed $x Left expression.
388
+     * @param integer $x Left expression.
389 389
      * @param mixed $y Right expression.
390 390
      *
391 391
      * @return Expr\Math
@@ -404,8 +404,8 @@  discard block
 block discarded – undo
404 404
      *     // u.numChildren + 1
405 405
      *     $q->expr()->sum('u.numChildren', '1')
406 406
      *
407
-     * @param mixed $x Left expression.
408
-     * @param mixed $y Right expression.
407
+     * @param integer $x Left expression.
408
+     * @param integer $y Right expression.
409 409
      *
410 410
      * @return Expr\Math
411 411
      */
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
      *     $expr->quot('u.total', 'u.period')
425 425
      *
426 426
      * @param mixed $x Left expression.
427
-     * @param mixed $y Right expression.
427
+     * @param integer $y Right expression.
428 428
      *
429 429
      * @return Expr\Math
430 430
      */
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
     /**
437 437
      * Creates a SQRT() function expression with the given argument.
438 438
      *
439
-     * @param mixed $x Argument to be used in SQRT() function.
439
+     * @param integer $x Argument to be used in SQRT() function.
440 440
      *
441 441
      * @return Expr\Func
442 442
      */
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
      * Creates a LIKE() comparison expression with the given arguments.
516 516
      *
517 517
      * @param string $x Field in string format to be inspected by LIKE() comparison.
518
-     * @param mixed  $y Argument to be used in LIKE() comparison.
518
+     * @param string  $y Argument to be used in LIKE() comparison.
519 519
      *
520 520
      * @return Expr\Comparison
521 521
      */
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
      * Creates a NOT LIKE() comparison expression with the given arguments.
529 529
      *
530 530
      * @param string $x Field in string format to be inspected by LIKE() comparison.
531
-     * @param mixed  $y Argument to be used in LIKE() comparison.
531
+     * @param string  $y Argument to be used in LIKE() comparison.
532 532
      *
533 533
      * @return Expr\Comparison
534 534
      */
@@ -540,8 +540,8 @@  discard block
 block discarded – undo
540 540
     /**
541 541
      * Creates a CONCAT() function expression with the given arguments.
542 542
      *
543
-     * @param mixed $x First argument to be used in CONCAT() function.
544
-     * @param mixed $y,... Other arguments to be used in CONCAT() function.
543
+     * @param string $x First argument to be used in CONCAT() function.
544
+     * @param string $y
545 545
      *
546 546
      * @return Expr\Func
547 547
      */
@@ -553,7 +553,7 @@  discard block
 block discarded – undo
553 553
     /**
554 554
      * Creates a SUBSTRING() function expression with the given arguments.
555 555
      *
556
-     * @param mixed    $x    Argument to be used as string to be cropped by SUBSTRING() function.
556
+     * @param string    $x    Argument to be used as string to be cropped by SUBSTRING() function.
557 557
      * @param int      $from Initial offset to start cropping string. May accept negative values.
558 558
      * @param int|null $len  Length of crop. May accept negative values.
559 559
      *
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
     /**
573 573
      * Creates a LOWER() function expression with the given argument.
574 574
      *
575
-     * @param mixed $x Argument to be used in LOWER() function.
575
+     * @param string $x Argument to be used in LOWER() function.
576 576
      *
577 577
      * @return Expr\Func A LOWER function expression.
578 578
      */
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
     /**
585 585
      * Creates an UPPER() function expression with the given argument.
586 586
      *
587
-     * @param mixed $x Argument to be used in UPPER() function.
587
+     * @param string $x Argument to be used in UPPER() function.
588 588
      *
589 589
      * @return Expr\Func An UPPER function expression.
590 590
      */
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
     /**
597 597
      * Creates a LENGTH() function expression with the given argument.
598 598
      *
599
-     * @param mixed $x Argument to be used as argument of LENGTH() function.
599
+     * @param string $x Argument to be used as argument of LENGTH() function.
600 600
      *
601 601
      * @return Expr\Func A LENGTH function expression.
602 602
      */
@@ -638,11 +638,11 @@  discard block
 block discarded – undo
638 638
     /**
639 639
      * Creates an instance of BETWEEN() function, with the given argument.
640 640
      *
641
-     * @param mixed          $val Valued to be inspected by range values.
642
-     * @param integer|string $x   Starting range value to be used in BETWEEN() function.
643
-     * @param integer|string $y   End point value to be used in BETWEEN() function.
641
+     * @param string          $val Valued to be inspected by range values.
642
+     * @param integer $x   Starting range value to be used in BETWEEN() function.
643
+     * @param integer $y   End point value to be used in BETWEEN() function.
644 644
      *
645
-     * @return Expr\Func A BETWEEN expression.
645
+     * @return string A BETWEEN expression.
646 646
      */
647 647
     public function between($val, $x, $y)
648 648
     {
@@ -652,7 +652,7 @@  discard block
 block discarded – undo
652 652
     /**
653 653
      * Creates an instance of TRIM() function, with the given argument.
654 654
      *
655
-     * @param mixed $x Argument to be used as argument of TRIM() function.
655
+     * @param string $x Argument to be used as argument of TRIM() function.
656 656
      *
657 657
      * @return Expr\Func a TRIM expression.
658 658
      */
Please login to merge, or discard this patch.