PHP 7 Type Safe Arrays
PHP 7 introduced scalar type declarations and return type hints, which let you enforce types on function parameters and return values. But what about arrays? PHP still allows you to mix any data type inside a single array, which can lead to subtle bugs when your code assumes all elements