php

Type safety in PHP arrays

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