Skip to content

Commit 407e06b

Browse files
committed
Pretty capifony compatible
If use capifony and share config file on first deploy get error. Capistrano create empty file and crash on composer install
1 parent bc06242 commit 407e06b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ScriptHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ 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();
6567
if (!is_array($existingValues)) {
6668
throw new \InvalidArgumentException(sprintf('The existing "%s" file does not contain an array', $realFile));
6769
}

0 commit comments

Comments
 (0)