SoapFault is never thrown in try block?!?!

Seeing this warning in the below code which is valid and is throw during testing. 

try {
$client = new SoapClient($this->wsdl,
array('trace' => 1,
'encoding' => 'UTF-8',
'features' => SOAP_SINGLE_ELEMENT_ARRAYS,
'stream_context' => stream_context_create(
array('ssl' => array(
'crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT,)
))));

$results = $client->login(array('apiToken' => $token))->return;


} catch (SoapFault $e) {
$this->message('error',"Login - uncaught exception: ". $e->faultstring);
$results = false;
}

 

Guessing this is due to this never being addressed: https://youtrack.jetbrains.com/issue/WI-14061

0

Please sign in to leave a comment.