We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6790ce commit ecc59afCopy full SHA for ecc59af
plugin/lib/Aplazame/Aplazame/Http/WpClient.php
@@ -16,7 +16,7 @@ public function send( Aplazame_Sdk_Http_RequestInterface $request ) {
16
17
$wpResponse = wp_remote_request( $request->getUri(), $args );
18
if ( is_wp_error( $wpResponse ) ) {
19
- throw new RuntimeException( $wpResponse->get_error_message(), $wpResponse->get_error_code() );
+ throw new RuntimeException( $wpResponse->get_error_message(), (int) $wpResponse->get_error_code() );
20
}
21
22
$responseBody = wp_remote_retrieve_body( $wpResponse );
0 commit comments