From 6f463cbce5bb529521c1d2d4b5433c5b91c70664 Mon Sep 17 00:00:00 2001 From: carmenmaymo Date: Fri, 5 May 2023 11:47:01 +0200 Subject: [PATCH] Fix psalm PCP-696 --- modules/ppcp-api-client/src/Endpoint/OrderEndpoint.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ppcp-api-client/src/Endpoint/OrderEndpoint.php b/modules/ppcp-api-client/src/Endpoint/OrderEndpoint.php index 437c98714..1170e03ea 100644 --- a/modules/ppcp-api-client/src/Endpoint/OrderEndpoint.php +++ b/modules/ppcp-api-client/src/Endpoint/OrderEndpoint.php @@ -625,10 +625,10 @@ class OrderEndpoint { /** * Adds an improved error message to the response if the error detail is known. * - * @param Object $json The response. - * @return Object + * @param stdClass $json The response. + * @return stdClass */ - public function add_improved_error_message( $json ): object { + public function add_improved_error_message( stdClass $json ): stdClass { if ( ! isset( $json->details ) ) { return $json; }