Completed
Pull Request — master (#2076)
by Olivier
01:54
created
lib/Doctrine/ODM/MongoDB/Aggregation/Stage/GraphLookup.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -280,6 +280,9 @@
 block discarded – undo
280 280
         return Type::convertPHPToDatabaseValue(Expr::convertExpression($expression));
281 281
     }
282 282
 
283
+    /**
284
+     * @param string $fieldName
285
+     */
283 286
     private function convertTargetFieldName($fieldName)
284 287
     {
285 288
         if (is_array($fieldName)) {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Lookup.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -137,6 +137,9 @@
 block discarded – undo
137 137
         return $this;
138 138
     }
139 139
 
140
+    /**
141
+     * @param ClassMetadata $class
142
+     */
140 143
     protected function prepareFieldName(string $fieldName, ?ClassMetadata $class = null) : string
141 144
     {
142 145
         if (! $class) {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Aggregation/Expr.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1074,7 +1074,7 @@  discard block
 block discarded – undo
1074 1074
      *
1075 1075
      * @param mixed|self $start An integer that specifies the start of the sequence. Can be any valid expression that resolves to an integer.
1076 1076
      * @param mixed|self $end   An integer that specifies the exclusive upper limit of the sequence. Can be any valid expression that resolves to an integer.
1077
-     * @param mixed|self $step  Optional. An integer that specifies the increment value. Can be any valid expression that resolves to a non-zero integer. Defaults to 1.
1077
+     * @param integer $step  Optional. An integer that specifies the increment value. Can be any valid expression that resolves to a non-zero integer. Defaults to 1.
1078 1078
      */
1079 1079
     public function range($start, $end, $step = 1) : self
1080 1080
     {
@@ -1588,6 +1588,7 @@  discard block
 block discarded – undo
1588 1588
      * Ensure that a current field has been set.
1589 1589
      *
1590 1590
      * @throws LogicException If a current field has not been set.
1591
+     * @param string $method
1591 1592
      */
1592 1593
     private function requiresCurrentField(?string $method = null) : void
1593 1594
     {
@@ -1598,6 +1599,7 @@  discard block
 block discarded – undo
1598 1599
 
1599 1600
     /**
1600 1601
      * @throws BadMethodCallException If there is no current switch operator.
1602
+     * @param string $method
1601 1603
      */
1602 1604
     private function requiresSwitchStatement(?string $method = null) : void
1603 1605
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Match.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -452,7 +452,7 @@
 block discarded – undo
452 452
      * @see http://docs.mongodb.org/manual/reference/operator/mod/
453 453
      *
454 454
      * @param float|int $divisor
455
-     * @param float|int $remainder
455
+     * @param integer $remainder
456 456
      */
457 457
     public function mod($divisor, $remainder = 0) : self
458 458
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Operator.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
      * @see http://docs.mongodb.org/manual/meta/aggregation-quick-reference/#aggregation-expressions
397 397
      * @see Expr::expression
398 398
      *
399
-     * @param mixed|Expr $value
399
+     * @param boolean $value
400 400
      */
401 401
     public function expression($value)
402 402
     {
@@ -994,7 +994,7 @@  discard block
 block discarded – undo
994 994
      *
995 995
      * @param mixed|Expr $start An integer that specifies the start of the sequence. Can be any valid expression that resolves to an integer.
996 996
      * @param mixed|Expr $end   An integer that specifies the exclusive upper limit of the sequence. Can be any valid expression that resolves to an integer.
997
-     * @param mixed|Expr $step  Optional. An integer that specifies the increment value. Can be any valid expression that resolves to a non-zero integer. Defaults to 1.
997
+     * @param integer $step  Optional. An integer that specifies the increment value. Can be any valid expression that resolves to a non-zero integer. Defaults to 1.
998 998
      */
999 999
     public function range($start, $end, $step = 1) : self
1000 1000
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Iterator/HydratingIterator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     /**
41 41
      * @see http://php.net/iterator.current
42 42
      *
43
-     * @return mixed
43
+     * @return \Doctrine\ODM\MongoDB\object|null
44 44
      */
45 45
     public function current()
46 46
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Query/Builder.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1010,7 +1010,7 @@  discard block
 block discarded – undo
1010 1010
      * @see http://docs.mongodb.org/manual/reference/operator/mod/
1011 1011
      *
1012 1012
      * @param float|int $divisor
1013
-     * @param float|int $remainder
1013
+     * @param integer $remainder
1014 1014
      */
1015 1015
     public function mod($divisor, $remainder = 0) : self
1016 1016
     {
@@ -1171,7 +1171,7 @@  discard block
 block discarded – undo
1171 1171
      * If a custom callable is used, its signature should conform to the default
1172 1172
      * Closure defined in {@link ReferencePrimer::__construct()}.
1173 1173
      *
1174
-     * @param bool|callable $primer
1174
+     * @param boolean $primer
1175 1175
      *
1176 1176
      * @throws InvalidArgumentException If $primer is not boolean or callable.
1177 1177
      */
@@ -1518,7 +1518,7 @@  discard block
 block discarded – undo
1518 1518
      * field name (key) and order (value) pairs.
1519 1519
      *
1520 1520
      * @param array|string $fieldName Field name or array of field/order pairs
1521
-     * @param int|string   $order     Field order (if one field is specified)
1521
+     * @param integer   $order     Field order (if one field is specified)
1522 1522
      */
1523 1523
     public function sort($fieldName, $order = 1) : self
1524 1524
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Query/Expr.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -452,7 +452,7 @@
 block discarded – undo
452 452
      * @see http://docs.mongodb.org/manual/reference/operator/mod/
453 453
      *
454 454
      * @param float|int $divisor
455
-     * @param float|int $remainder
455
+     * @param integer $remainder
456 456
      */
457 457
     public function mod($divisor, $remainder = 0) : self
458 458
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -172,6 +172,9 @@
 block discarded – undo
172 172
         }
173 173
     }
174 174
 
175
+    /**
176
+     * @param string|null $fileName
177
+     */
175 178
     private function generateHydratorClass(ClassMetadata $class, string $hydratorClassName, ?string $fileName) : void
176 179
     {
177 180
         $code = '';
Please login to merge, or discard this patch.