Here is a classic situation, where injecting an array of arrays leads to the infamous list of 'Array, Array, Array...'
What #PHP tool do you use to guard against this warning?
is_array() is not sufficient, and the type is already there.
There is nothing native available.
https://3v4l.org/Srifn#v
3v4l.orgSrifn - created on 3v4l.orgView the output of this script on 3v4l.org: the online PHP shell with 500+ PHP versions
commit 1b9ac93
What about flattening the input if you allow nested array? or throwing an exception otherwise, i guess.