Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
Merge pull request #6 from riconeitzel/patch-1
Browse files Browse the repository at this point in the history
fixes php7.2 compatibility
  • Loading branch information
Lmbrtz authored Jul 12, 2019
2 parents 47819fb + 98045a1 commit 4c29e74
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 @@ -173,7 +173,7 @@ private function _convertToArray($param)
foreach ($param as $k => $v) {
if ($v instanceof PayPalModel) {
$ret[$k] = $v->toArray();
} else if (sizeof($v) <= 0 && is_array($v)) {
} else if (is_array($v) && sizeof($v) <= 0) {
$ret[$k] = array();
} else if (is_array($v)) {
$ret[$k] = $this->_convertToArray($v);
Expand Down

0 comments on commit 4c29e74

Please sign in to comment.