24.10.2016 07:05 "Stanislav Malyshev" <smalys...@gmail.com> napisał(a):
>
> Hi!
>
> > In the same way that Iterable type hint allows you to safely do a
> > foreach on an argument, object allows you to safely use property
> > accessor syntax (i.e. ->). For me it would be most useful in lower
> > level utility classes.
>
> Not sure I get this point. How you can safely use -> if you have no idea
> what object you've got? You certainly don't expect every object to have
> the same properties?

You don't need is_object any more you can safely check instanceof, use
Reflection, serialize etc.

>
> --
> Stas Malyshev
> smalys...@gmail.com

Reply via email to