4 ms·
Previously you could only specify class names and interfaces, now you can specify object (any object of any class, including StdClass). Mostly only a way to typ
by Can_Not 9y ago
Previously you could only specify class names and interfaces, now you can specify object (any object of any class, including StdClass). Mostly only a way to type hint "not array or any scalars". The class names has been around a while and is usually way more useful.