You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This inspection shouldn't be as "aggessive" as stroke the function as since php8.0 (at least) intval() (and similar type casting methods) are now faster than (or on par with) (int) $var syntax.
With all improvements in PHP core since inspection was introduced, we can update the reporting to weak warning and move it into code style group. We will make the necessary changes as soon as capacity allows.
Description (screenshot):
This inspection shouldn't be as "aggessive" as stroke the function as since php8.0 (at least)
intval()
(and similar type casting methods) are now faster than (or on par with)(int) $var
syntax.Example
Simple benchmark on lots of iteration to make results clear : https://3v4l.org/8fXUh
The text was updated successfully, but these errors were encountered: