Strict Types in PHP: Like a Bouncer for Your Arguments
💬 Introduction
PHP is famously loose when it comes to types. You can pass a string where a number is expected, and PHP just shrugs and says, “Sure, I’ll make it work.”
But that kind of flexibility comes at a cost: silent bugs, unpredictable behavior...
stephen-macharia.hashnode.dev4 min read