Description:
------------
With Multiple typehint support, function arguments can accept multiple specific type of data.
The syntax would be like this:
function demo(TypeA|ClassA|Array $var){
}
Which will accept the one of those types: TypeA, ClassA, Array as valid argument.

Pull Requests

History

Previously requested as request #31785. I don't think anything's changed, really: the stock advice of using an interface that defines the API you expect to be implemented stands, and I don't think the object-or-array case is important enough to merit this sort of change.