PHP 8 News: Union Types and Mixed Types
Union Types
PHP 8 introduced Union Types as a significant improvement in how we can declare data types in PHP. Prior to PHP 8, type declaration was limited to a single type or allowed only for the acceptance of null (using the ? operator). With Union...
antoniosilva.hashnode.dev2 min read