Failed Conditions
Push — develop ( 454cf8...856053 )
by Marco
66:24 queued 11s
created
lib/Doctrine/ORM/PersistentCollection.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      * INTERNAL:
170 170
      * Sets a keyed element in the collection during hydration.
171 171
      *
172
-     * @param mixed $key     The key to set.
172
+     * @param integer $key     The key to set.
173 173
      * @param mixed $element The element to set.
174 174
      *
175 175
      * @return void
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
      * Internal note: Tried to implement Serializable first but that did not work well
584 584
      *                with circular references. This solution seems simpler and works well.
585 585
      *
586
-     * @return array
586
+     * @return string[]
587 587
      */
588 588
     public function __sleep()
589 589
     {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Persister/Collection/AbstractCollectionPersister.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Cache\Persister\Collection;
7 7
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         $targetHydrator  = $targetPersister->getEntityHydrator();
165 165
 
166 166
         // Only preserve ordering if association configured it
167
-        if (! ($association instanceof ToManyAssociationMetadata && $association->getIndexedBy())) {
167
+        if ( ! ($association instanceof ToManyAssociationMetadata && $association->getIndexedBy())) {
168 168
             // Elements may be an array or a Collection
169 169
             $elements = \array_values($elements instanceof Collection ? $elements->getValues() : $elements);
170 170
         }
Please login to merge, or discard this patch.