IntelliJ assumes incorrect return type for Memcache::getServerStatus()

I'm using PHP's Memcache class.  When I attempt to return the result of the above-referenced method, I get a warning that I'm attempting to use the result of a void function.  I know from the documentation that the result will actually be an int:

http://www.php.net/manual/en/memcache.getserverstatus.php

Is there any way to hint what the result will actually be?

TIA

1 comment
Comment actions Permalink

Here is the related issue
http://youtrack.jetbrains.com/issue/WI-10748

Here you can find more info on how PHP extension function/classes "stubs" work
http://youtrack.jetbrains.com/issue/WI-174

Please post all following PHP-related questions directly to PhpStorm forum
http://devnet.jetbrains.com/community/wi?view=discussions&start=0

0

Please sign in to leave a comment.