This commit is contained in:
carmenmaymo 2023-06-12 09:17:31 +02:00
parent f6384efdf1
commit 54fdc6b3ec
No known key found for this signature in database
GPG key ID: 6023F686B0F3102E

View file

@ -34,7 +34,7 @@ class PayPalApiException extends RuntimeException {
* PayPalApiException constructor.
*
* @param stdClass|null $response The JSON object.
* @param int $status_code The HTTP status code.
* @param int $status_code The HTTP status code.
*/
public function __construct( stdClass $response = null, int $status_code = 0 ) {
if ( is_null( $response ) ) {
@ -59,7 +59,7 @@ class PayPalApiException extends RuntimeException {
if ( ! isset( $response->links ) || ! is_array( $response->links ) ) {
$response->links = array();
}
$response = $this->add_improved_error_message( $response );
$response = $this->add_improved_error_message( $response );
/**
* The JSON response object.