Support the ongoing development of →
Eloquent Architecture
Last updated 1 year ago.

This works since PHP5.5 it returnes a String with the class name and its fully qualified namespace. The only benefit I know is thats it's better for Typehinting in the IDE.


There are more benefits than just Typehinting:

  • You can easily inspect the class header and identify the class relationships it uses.
  • You get to know more easily, where a specific class is used, when you search for "Find usages in File" in your IDE.

Sign in to participate in this thread!


Your banner here too?

wyred wyred Joined 5 Feb 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.