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
请先登录再写评论。
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, headerfaultOn 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