Skip to content

Commit

Permalink
fixed PHP8 issue - call is_array first
Browse files Browse the repository at this point in the history
  • Loading branch information
witoldwegner committed Oct 12, 2022
1 parent 1a2ed76 commit c5e9e27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PayPal/Common/PayPalModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private function _convertToArray($param)
foreach ($param as $k => $v) {
if ($v instanceof PayPalModel) {
$ret[$k] = $v->toArray();
} elseif (is_array($v) && sizeof($v) <= 0) {
} else if (is_array($v) && sizeof($v) <= 0) {
$ret[$k] = array();
} elseif (is_array($v)) {
$ret[$k] = $this->_convertToArray($v);
Expand Down

0 comments on commit c5e9e27

Please sign in to comment.