mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +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.
|
||||
*
|
||||
* @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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue