php

Type safety in PHP arrays

PHP allows for gradual typing since version 7.0. However, it’s not yet possible with arrays and it doesn’t provide generic types like for example C# or Java....