Skip to content

Commit 6c75b04

Browse files
committed
Merge pull request #38 from ivan1986/patch-1
Pretty capifony compatible
2 parents 05026e8 + fbf923c commit 6c75b04

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ScriptHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ private static function processFile(array $config, IOInterface $io)
6262
$actualValues = array($parameterKey => array());
6363
if ($exists) {
6464
$existingValues = $yamlParser->parse(file_get_contents($realFile));
65+
if ($existingValues === null) {
66+
$existingValues = array();
67+
}
6568
if (!is_array($existingValues)) {
6669
throw new \InvalidArgumentException(sprintf('The existing "%s" file does not contain an array', $realFile));
6770
}

0 commit comments

Comments
 (0)