From 8ab3d2b156d3ef1fbb274cebddb600d3eed21d6d Mon Sep 17 00:00:00 2001 From: Sergei Miami Date: Mon, 5 Feb 2024 02:38:52 +0200 Subject: [PATCH] unused local variable and fixed wrong type of the parameter --- lib/Doctrine/Collection.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Doctrine/Collection.php b/lib/Doctrine/Collection.php index 25b7ca441..7b3c60104 100644 --- a/lib/Doctrine/Collection.php +++ b/lib/Doctrine/Collection.php @@ -811,12 +811,11 @@ public function toHierarchy() /** * Populate a Doctrine_Collection from an array of data * - * @param string $array + * @param array $array * @return void */ public function fromArray($array, $deep = true) { - $data = array(); foreach ($array as $rowKey => $row) { $this[$rowKey]->fromArray($row, $deep); }