Completed
Pull Request — master (#2172)
by
unknown
21:35
created
lib/Doctrine/ODM/MongoDB/Id/IncrementGenerator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -58,6 +58,9 @@
 block discarded – undo
58 58
         $this->key = $key;
59 59
     }
60 60
 
61
+    /**
62
+     * @param integer $startingId
63
+     */
61 64
     public function setStartingId($startingId)
62 65
     {
63 66
         $this->startingId = $startingId;
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/LockException.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -29,6 +29,9 @@  discard block
 block discarded – undo
29 29
 {
30 30
     private $document;
31 31
 
32
+    /**
33
+     * @param string $msg
34
+     */
32 35
     public function __construct($msg, $document = null)
33 36
     {
34 37
         if (self::class !== static::class) {
@@ -58,6 +61,9 @@  discard block
 block discarded – undo
58 61
         return new self('The optimistic lock failed, version ' . $expectedLockVersion . ' was expected, but is actually '.$actualLockVersion, $document);
59 62
     }
60 63
 
64
+    /**
65
+     * @param string $documentName
66
+     */
61 67
     public static function notVersioned($documentName)
62 68
     {
63 69
         return new self('Document ' . $documentName . ' is not versioned.');
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Mapping/Driver/AnnotationDriver.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -323,7 +323,7 @@
 block discarded – undo
323 323
     /**
324 324
      * Factory method for the Annotation Driver
325 325
      *
326
-     * @param array|string $paths
326
+     * @param string $paths
327 327
      * @param Reader $reader
328 328
      * @return AnnotationDriver
329 329
      */
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Mapping/MappingException.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     /**
90 90
      * @param $fieldName
91 91
      * @param $className
92
-     * @param $className2
92
+     * @param string $className2
93 93
      * @return MappingException
94 94
      */
95 95
     public static function referenceFieldConflict($fieldName, $className, $className2)
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
     }
331 331
 
332 332
     /**
333
-     * @param $subclassName
333
+     * @param string $subclassName
334 334
      * @return MappingException
335 335
      */
336 336
     public static function shardKeyInSingleCollInheritanceSubclass($subclassName)
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
     }
340 340
 
341 341
     /**
342
-     * @param $className
342
+     * @param string $className
343 343
      * @return MappingException
344 344
      */
345 345
     public static function embeddedDocumentCantHaveShardKey($className)
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
     }
359 359
 
360 360
     /**
361
-     * @param $className
361
+     * @param string $className
362 362
      * @param $fieldName
363 363
      * @return MappingException
364 364
      */
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/MongoDBException.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
 
148 148
     /**
149 149
      * @param string $type
150
-     * @param string|array $expected
150
+     * @param string[] $expected
151 151
      * @param mixed $got
152 152
      * @return MongoDBException
153 153
      */
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/PersistentCollection.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -20,10 +20,8 @@
 block discarded – undo
20 20
 namespace Doctrine\ODM\MongoDB;
21 21
 
22 22
 use Doctrine\Common\Collections\Collection as BaseCollection;
23
-use Doctrine\ODM\MongoDB\Mapping\ClassMetadata;
24 23
 use Doctrine\ODM\MongoDB\PersistentCollection\PersistentCollectionInterface;
25 24
 use Doctrine\ODM\MongoDB\PersistentCollection\PersistentCollectionTrait;
26
-use Doctrine\ODM\MongoDB\Utility\CollectionHelper;
27 25
 
28 26
 /**
29 27
  * A PersistentCollection represents a collection of elements that have persistent state.
Please login to merge, or discard this patch.
Doctrine/ODM/MongoDB/PersistentCollection/PersistentCollectionException.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,8 +80,8 @@
 block discarded – undo
80 80
     }
81 81
 
82 82
     /**
83
-     * @param $className
84
-     * @param $methodName
83
+     * @param string $className
84
+     * @param string $methodName
85 85
      * @param \Exception|null $previous
86 86
      *
87 87
      * @return self
Please login to merge, or discard this patch.
lib/Doctrine/ODM/MongoDB/Query/QueryExpressionVisitor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
      *
144 144
      * @see ExpressionVisitor::walkValue()
145 145
      * @param Value $value
146
-     * @return mixed
146
+     * @return string
147 147
      */
148 148
     public function walkValue(Value $value)
149 149
     {
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
@@ -2695,7 +2695,7 @@
 block discarded – undo
2695 2695
      * @param array $data The data for the document.
2696 2696
      * @param array $hints Any hints to account for during reconstitution/lookup of the document.
2697 2697
      * @param object $document The document to be hydrated into in case of creation
2698
-     * @return object The document instance.
2698
+     * @return callable|null The document instance.
2699 2699
      */
2700 2700
     public function getOrCreateDocument($className, $data, &$hints = array(), $document = null)
2701 2701
     {
Please login to merge, or discard this patch.