Skip to content

Commit 8ab3d2b

Browse files
committed
unused local variable and fixed wrong type of the parameter
1 parent 7327db8 commit 8ab3d2b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Doctrine/Collection.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,12 +811,11 @@ public function toHierarchy()
811811
/**
812812
* Populate a Doctrine_Collection from an array of data
813813
*
814-
* @param string $array
814+
* @param array $array
815815
* @return void
816816
*/
817817
public function fromArray($array, $deep = true)
818818
{
819-
$data = array();
820819
foreach ($array as $rowKey => $row) {
821820
$this[$rowKey]->fromArray($row, $deep);
822821
}

0 commit comments

Comments
 (0)