1
0
Fork 0

guard against non array value

pull/5888/head
Rob Bast 2016-11-21 10:45:26 +01:00
parent 611d6a0364
commit 7d67da3ffa
No known key found for this signature in database
GPG Key ID: 73076E35E6165F39
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ class ArrayDumper
}
}
if (count($package->getTransportOptions()) > 0) {
if (is_array($package->getTransportOptions()) && count($package->getTransportOptions()) > 0) {
$data['transport-options'] = $package->getTransportOptions();
}