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