Skip to content

Commit fc6bf4c

Browse files
sherakamawebflo
authored andcommitted
Protect against missing result value (#91)
1 parent 90f4202 commit fc6bf4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/PrestissimoFileFetcher.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ protected function fetchWithPrestissimo($version, $destination, $override) {
6868
$result = $multi->getFinishedResults();
6969
$successCnt += $result['successCnt'];
7070
$failureCnt += $result['failureCnt'];
71-
$errors += $result['errors'];
71+
if (isset($result['errors'])) {
72+
$errors += $result['errors'];
73+
}
7274
if ($this->progress) {
7375
foreach ($result['urls'] as $url) {
7476
$this->io->writeError(" - Downloading <comment>$successCnt</comment>/<comment>$totalCnt</comment>: <info>$url</info>", TRUE);

0 commit comments

Comments
 (0)