Fun with structs

PHP 7.0 introduced great additions to it’s object model: type declarations and return type declarations. I use these features extensively and could never look back. It makes PHP code much more readable, and much more predictable. There is still one gray area in PHP’s object model: typed properties. While we wait patiently for PHP 7.4 […]