fix psalm

This commit is contained in:
dinamiko 2022-10-05 10:05:14 +02:00
parent 4e0d30bb58
commit 1dab5df16c

View file

@ -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;
}