Skip to content

1.3.0

Compare
Choose a tag to compare
@aboks aboks released this 08 Feb 16:18
· 71 commits to master since this release

Added new sniff Moxio.PHP.DisallowImplicitMicrotimeAsString. This sniff disallows calls to microtime() without the $get_as_float argument being explicitly set. By default, microtime has a string as its return value ("msec sec"), which is unexpected and cannot be naively cast to float, making it error-prone. It is still possible to set this argument to false, but in that case you have probably thought about this.