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
1 comment

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
0

Please sign in to leave a comment.