Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array, string given in /home/cp420145/public_html/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php:176
Stack trace:
#0 /home/cp420145/public_html/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php(176): sizeof()
#1 /home/cp420145/public_html/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php(278): PayPal\Common\PayPalModel->_convertToArray()
#2 /home/cp420145/public_html/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php(175): PayPal\Common\PayPalModel->toArray()
#3 /home/cp420145/public_html/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php(278): PayPal\Common\PayPalModel->_convertToArray()
#4 /home/cp420145/public_html/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php(293): PayPal\Common\PayPalModel->toArray()
#5 /home/cp420145/public_html/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Invoice.php(728): PayPal\Common\PayPalModel->toJSON()
#6 /home/cp420145/public_html/vendor/paypal/rest-api-sdk-php/sample/invoice/CreateInvoice.php(155): PayPal\Api\Invoice->create()
#7 /home/cp420145/public_html/vendor/paypal/rest-api-sdk-php/sample/invoice/SendInvoice.php(8): require('/home/cp420145/...')
#8 /home/cp420145/public_html/vendor/paypal/rest-api-sdk-php/sample/invoice/RetrieveQRCode.php(7): require('/home/cp420145/...')
#9 {main}
thrown in /home/cp420145/public_html/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line 176