guard against non array value
parent
611d6a0364
commit
7d67da3ffa
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue