PHP's "Strict" Types That Aren’t So Strict: The Curious Case of Int-to-Float Coercion
When PHP 7 introduced strict types, many developers breathed a sigh of relief. Finally, a way to enforce strict type checking in function arguments and return types! But if you’ve ever played around with strict_types=1, you may have noticed something peculiar: passing an integer to a function