Parse error syntax error unexpected T PAAMAYIM NEKUDOTAYIM

suggest change

Appearance:

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();

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents