This commit is contained in:
Julio Cesar Laura Avendaño
2018-08-24 15:22:46 -04:00
parent 7b7afb14c0
commit a48b3845d2

View File

@@ -336,8 +336,13 @@ class CaseScheduler extends BaseCaseScheduler
$testConnection = true;
try {
@$client = new SoapClient("http://" . $url);
$client = new SoapClient("http://" . $url);
} catch (SoapFault $fault) {
/* Laravel register a exception handler that catch the exception throwed by the class SoapClient,
* by this reason now the "Error Control Operator @" doesn't works when a exception is throwed,
* so, we need to clear the last error catched.
*/
error_clear_last();
$testConnection = false;
}