I have a desire to store an object as a property of a class. I then want to be able to call static methods on that class by directly referencing the property.
Consider t
The error that syntax will give you is:
Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)
However it will work in PHP 7 thanks to the Uniform Variable Syntax RFC. All prior versions will require the intermediate variable.