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:

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


1 comment
Comment actions Permalink

Here is the related issue

Here you can find more info on how PHP extension function/classes "stubs" work

Please post all following PHP-related questions directly to PhpStorm forum


Please sign in to leave a comment.