Skip to content

Commit 460a5e7

Browse files
committed
Fixes potential countable error.
1 parent 97023d3 commit 460a5e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DataFixtures/Loader/AbstractDataLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function load($files = array(), $connectionName)
6060
foreach ($files as $file) {
6161
$content = $this->transformDataToArray($file);
6262

63-
if (count($content) > 0) {
63+
if (is_countable($content) && count($content) > 0) {
6464
$datas = array_merge_recursive($datas, $content);
6565
$nbFiles++;
6666
}

0 commit comments

Comments
 (0)