mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Fix psalm PCP-696
This commit is contained in:
parent
cec69d64da
commit
6f463cbce5
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue