From 687c73dce97eec5a907687ee896b93d92c929210 Mon Sep 17 00:00:00 2001 From: s-renier-taonix-fr Date: Mon, 13 Feb 2023 11:06:17 +0800 Subject: [PATCH] Optim : Condition is unnecessary because it is checked by 'get_class' --- src/nusoap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nusoap.php b/src/nusoap.php index 9dd79ae..e281b76 100755 --- a/src/nusoap.php +++ b/src/nusoap.php @@ -4257,7 +4257,7 @@ function serialize_return() { $this->debug('Entering serialize_return methodname: ' . $this->methodname . ' methodURI: ' . $this->methodURI); // if fault - if (isset($this->methodreturn) && is_object($this->methodreturn) && ((get_class($this->methodreturn) == 'soap_fault') || (get_class($this->methodreturn) == 'nusoap_fault'))) { + if (isset($this->methodreturn) && ((get_class($this->methodreturn) == 'soap_fault') || (get_class($this->methodreturn) == 'nusoap_fault'))) { $this->debug('got a fault object from method'); $this->fault = $this->methodreturn; return;