mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
fix psalm
This commit is contained in:
parent
4e0d30bb58
commit
1dab5df16c
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ class PayPalApiException extends RuntimeException {
|
|||
* @return string
|
||||
*/
|
||||
public function get_details( string $error ): string {
|
||||
if ( ! is_array( $this->details() ) || empty( $this->details() ) ) {
|
||||
if ( empty( $this->details() ) ) {
|
||||
return $error;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue