1 Replies Last post: Aug 23, 2013 2:21 PM by Andriy Bazanov  
Tjerk Meesters Newbie 2 posts since
Jul 19, 2013
Currently Being Moderated

Aug 23, 2013 6:06 AM

SoapFault is missing properties in stubs

I have the following code:

 

try {

    // ...

} catch (SoapFault $s) {

    switch ($s->faultcode) {

The editor says that faultcode doesn't exist in \SoapFault, but it should be. It turns out that it's simply not part of the editor stubs for soap.php.
Version: PS-130.1639
Andriy Bazanov Master 3,991 posts since
May 28, 2010
Currently Being Moderated
Aug 23, 2013 2:21 PM in response to: Tjerk Meesters
Re: SoapFault is missing properties in stubs

Hi there,

 

The faultcode field is not documented in official documentation (where PhpStorm takes data for stubs from): http://php.net/manual/en/class.soapfault.php

 

Other not-documented (but accessible) fields:

faultcode, faultstring, faultactor, detail, headerfault

 

On one hand it supposed to be fixed long time ago  ( http://youtrack.jetbrains.com/issue/WI-10316 ) but it seems that those changes were lost when stubs were re-generated (most likely).

 

I guess this is the right ticket for now: http://youtrack.jetbrains.com/issue/WI-14061 -- feel free to watch and comment there

More Like This

  • Retrieving data ...