Completed
Pull Request — master (#1829)
by Jeremy
22:59
created
lib/Doctrine/ODM/MongoDB/Query/Expr.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -818,7 +818,7 @@
 block discarded – undo
818 818
      * @see Builder::mod()
819 819
      * @see http://docs.mongodb.org/manual/reference/operator/mod/
820 820
      * @param float|int $divisor
821
-     * @param float|int $remainder
821
+     * @param integer $remainder
822 822
      * @return $this
823 823
      */
824 824
     public function mod($divisor, $remainder = 0)
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/UnitOfWork.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2569,7 +2569,7 @@
 block discarded – undo
2569 2569
      * @param array  $data      The data for the document.
2570 2570
      * @param array  $hints     Any hints to account for during reconstitution/lookup of the document.
2571 2571
      * @param object $document  The document to be hydrated into in case of creation
2572
-     * @return object The document instance.
2572
+     * @return callable|null The document instance.
2573 2573
      * @internal Highly performance-sensitive method.
2574 2574
      */
2575 2575
     public function getOrCreateDocument($className, $data, &$hints = [], $document = null)
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Lookup.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -170,6 +170,10 @@
 block discarded – undo
170 170
         return $this;
171 171
     }
172 172
 
173
+    /**
174
+     * @param string $fieldName
175
+     * @param ClassMetadata $class
176
+     */
173 177
     protected function prepareFieldName($fieldName, ?ClassMetadata $class = null)
174 178
     {
175 179
         if (! $class) {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Query/Builder.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     /**
107 107
      * Construct a Builder
108 108
      *
109
-     * @param string[]|string|null $documentName (optional) an array of document names, the document name, or none
109
+     * @param string|null $documentName (optional) an array of document names, the document name, or none
110 110
      */
111 111
     public function __construct(DocumentManager $dm, $documentName = null)
112 112
     {
@@ -1091,7 +1091,7 @@  discard block
 block discarded – undo
1091 1091
      * @see Expr::mod()
1092 1092
      * @see http://docs.mongodb.org/manual/reference/operator/mod/
1093 1093
      * @param float|int $divisor
1094
-     * @param float|int $remainder
1094
+     * @param integer $remainder
1095 1095
      * @return $this
1096 1096
      */
1097 1097
     public function mod($divisor, $remainder = 0)
@@ -1255,7 +1255,7 @@  discard block
 block discarded – undo
1255 1255
      * If a custom callable is used, its signature should conform to the default
1256 1256
      * Closure defined in {@link ReferencePrimer::__construct()}.
1257 1257
      *
1258
-     * @param bool|callable $primer
1258
+     * @param boolean $primer
1259 1259
      * @return $this
1260 1260
      * @throws \InvalidArgumentException If $primer is not boolean or callable.
1261 1261
      */
@@ -1648,7 +1648,7 @@  discard block
 block discarded – undo
1648 1648
      * field name (key) and order (value) pairs.
1649 1649
      *
1650 1650
      * @param array|string $fieldName Field name or array of field/order pairs
1651
-     * @param int|string   $order     Field order (if one field is specified)
1651
+     * @param integer   $order     Field order (if one field is specified)
1652 1652
      * @return $this
1653 1653
      */
1654 1654
     public function sort($fieldName, $order = 1)
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php 1 patch
Doc Comments   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -939,7 +939,7 @@  discard block
 block discarded – undo
939 939
     }
940 940
 
941 941
     /**
942
-     * @return array
942
+     * @return string|null
943 943
      */
944 944
     public function getShardKey()
945 945
     {
@@ -1039,7 +1039,7 @@  discard block
 block discarded – undo
1039 1039
     /**
1040 1040
      * Gets the ReflectionProperties of the mapped class.
1041 1041
      *
1042
-     * @return array An array of ReflectionProperty instances.
1042
+     * @return \ReflectionProperty[] An array of ReflectionProperty instances.
1043 1043
      */
1044 1044
     public function getReflectionProperties()
1045 1045
     {
@@ -1352,6 +1352,7 @@  discard block
 block discarded – undo
1352 1352
      * {@inheritDoc}
1353 1353
      *
1354 1354
      * Checks whether the class has a mapped association (embed or reference) with the given field name.
1355
+     * @param string $fieldName
1355 1356
      */
1356 1357
     public function hasAssociation($fieldName)
1357 1358
     {
@@ -1588,7 +1589,7 @@  discard block
 block discarded – undo
1588 1589
      *
1589 1590
      * @param string $dbFieldName
1590 1591
      *
1591
-     * @return array
1592
+     * @return string
1592 1593
      * @throws MappingException
1593 1594
      */
1594 1595
     public function getFieldMappingByDbFieldName($dbFieldName)
@@ -2098,7 +2099,7 @@  discard block
 block discarded – undo
2098 2099
      *      - reflClass (ReflectionClass)
2099 2100
      *      - reflFields (ReflectionProperty array)
2100 2101
      *
2101
-     * @return array The names of all the fields that should be serialized.
2102
+     * @return string[] The names of all the fields that should be serialized.
2102 2103
      */
2103 2104
     public function __sleep()
2104 2105
     {
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Types/Type.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@
 block discarded – undo
228 228
      * Get the types array map which holds all registered types and the corresponding
229 229
      * type class
230 230
      *
231
-     * @return array $typesMap
231
+     * @return string[] $typesMap
232 232
      */
233 233
     public static function getTypesMap()
234 234
     {
Please login to merge, or discard this patch.