mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-03 08:37:53 +08:00
Fix psalm
This commit is contained in:
parent
faa406fbd8
commit
8da7bbfc87
1 changed files with 2 additions and 1 deletions
|
@ -63,6 +63,7 @@ class PaymentCapturePending implements RequestHandler {
|
|||
* @return WP_REST_Response
|
||||
*/
|
||||
public function handle_request( \WP_REST_Request $request ): WP_REST_Response {
|
||||
$response = array( 'success' => false );
|
||||
$resource = $request['resource'];
|
||||
if ( ! is_array( $resource ) ) {
|
||||
$message = 'Resource data not found in webhook request.';
|
||||
|
@ -71,7 +72,7 @@ class PaymentCapturePending implements RequestHandler {
|
|||
return new WP_REST_Response( $response );
|
||||
}
|
||||
|
||||
$this->logger->info( wc_print_r( $resource, true ) );
|
||||
$this->logger->info( (string) wc_print_r( $resource, true ) );
|
||||
|
||||
$response['success'] = true;
|
||||
return new WP_REST_Response( $response );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue