array Is Not An Array

../_images/array_is_not_an_array.png

PHP native types, such as the scalar int cannot be specified with a leading \. Such code get hit with a Type declaration ‘\int’ must be unqualified.

This is the case for all of the PHP native types, except for array, and iterable.

That error message is really hilarious.

See Also

PHP Features