Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM

When you receive error as below

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM

What is mean? PAAMAYIM NEKUDOTAYIM sound like indian name?

Acually the PAAMAYIM_NEKUDOTAYIM is on Hebrew language, which means “twice colon” or “double colon” in Hebrew.

What it meaning on coding is mean the scope resolution operator in PHP.

So when you see the error as above, please check if your PHP script have twice colon ‘::’ . The error will show your which line having the issue.

For example, this error show to this line

return $class::get_required_behaviours();

Just edit the ‘::’ to ‘->’ will do

return $class->get_required_behaviours();

The -> syntax is for calling a method on an instance of a class/object.

One Reply to “Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM”

Leave a Reply

Your email address will not be published. Required fields are marked *