@@ -169,7 +169,7 @@ discard block |
||
| 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 |
||
| 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 | { |
@@ -1,7 +1,7 @@ discard block |
||
| 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 |
||
| 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 | } |