Parse error syntax error unexpected T PAAMAYIM NEKUDOTAYIM
suggest changeAppearance:
Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM). “Paamayim Nekudotayim” means “double colon” in Hebrew. This is a parse error: PHP saw :: where the grammar does not allow that token. It is not the runtime error for calling a non-static method with ::.
Possible Solution:
$classname::doMethod();
If $classname is an object and doMethod() is not static, that line is valid syntax and fails at runtime with Non-static method ... cannot be called statically. Call the instance method with ->:
$classname->doMethod();
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents