Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array, string given in C:\laragon\www\4TresSro-PVE old style\vendor\paypal\rest-api-sdk-php\lib\PayPal\Common\PayPalModel.php:176
Stack trace:
#0 C:\laragon\www\4TresSro-PVE old style\vendor\paypal\rest-api-sdk-php\lib\PayPal\Common\PayPalModel.php(176): sizeof('authorize')
#1 C:\laragon\www\4TresSro-PVE old style\vendor\paypal\rest-api-sdk-php\lib\PayPal\Common\PayPalModel.php(278): PayPal\Common\PayPalModel->_convertToArray(Array)
#2 C:\laragon\www\4TresSro-PVE old style\vendor\paypal\rest-api-sdk-php\lib\PayPal\Common\PayPalModel.php(293): PayPal\Common\PayPalModel->toArray()
#3 C:\laragon\www\4TresSro-PVE old style\vendor\paypal\rest-api-sdk-php\lib\PayPal\Api\Payment.php(571): PayPal\Common\PayPalModel->toJSON()
#4 C:\laragon\www\4TresSro-PVE old style\vendor\paypal\rest-api-sdk-php\sample\payments\AuthorizePayment.php(69): PayPal\Api\Payment->create(Object(PayPal\Rest\ApiContext))
#5 C:\laragon\www\4TresSro-PVE old style\vendor\paypal\rest-api-sdk-php\sample\payments\GetAuthorization.php(8): require('C:\\laragon\\www\\...')
#6 C:\laragon\www\4TresSro-PVE old style\vendor\paypal\rest-api-sdk-php\sample\payments\AuthorizationCapture.php(9): require('C:\\laragon\\www\\...')
#7 C:\laragon\www\4TresSro-PVE old style\vendor\paypal\rest-api-sdk-php\sample\payments\GetCapture.php(8): require('C:\\laragon\\www\\...')
#8 {main}
thrown in C:\laragon\www\4TresSro-PVE old style\vendor\paypal\rest-api-sdk-php\lib\PayPal\Common\PayPalModel.php on line 176