Is there a way to specify the argument type as an array? Assume if I have a class named foo:
class Foo {}
And I have a function that accepts that class type as an argument:
function getFoo(Foo $f) {}
I am getting an error when I pass in the array:
Catchable fatal error: Argument 1 passed to getFoo() must be an instance of Foo, array given
Is there a way to solve this?