Fix psalm PCP-696

This commit is contained in:
carmenmaymo 2023-05-05 11:47:01 +02:00
parent cec69d64da
commit 6f463cbce5
No known key found for this signature in database
GPG key ID: 6023F686B0F3102E

View file

@ -625,10 +625,10 @@ class OrderEndpoint {
/** /**
* Adds an improved error message to the response if the error detail is known. * Adds an improved error message to the response if the error detail is known.
* *
* @param Object $json The response. * @param stdClass $json The response.
* @return Object * @return stdClass
*/ */
public function add_improved_error_message( $json ): object { public function add_improved_error_message( stdClass $json ): stdClass {
if ( ! isset( $json->details ) ) { if ( ! isset( $json->details ) ) {
return $json; return $json;
} }