Why does PhpStorm write that set_time_limit returns nothing? Although everything works and of course it is written in the official documentation that the function returns bool values.

Is this a PhpStorm error itself?

enter image description here

  • one
    checked writes bool what version of storm'a, - Naumov
  • This question should be closed, because yes, this is a PhpStorm error and you need to contact your technical support with JetBrains. - AK ♦
  • 2
    It depends on what version of PHP you have. If <= 4 then everything is correct, then this function was void. It has become a bool only since PHP version 5. - Daniel Protopopov

1 answer 1

In older versions of PHP, as @DanielProtopopov correctly noted, it really was void : TykMi .
Update version: Settings -> Languages & Frameworks -> PHP -> PHP language level .

  • Updated, the problem is no more. Thanks :) - Alex