Does anyone have a T_PAAMAYIM_NEKUDOTAYIM?
It’s a name for the :: operator in PHP. It literally means "double colon". For some reason they named it in Hebrew. Check your code syntax, and put a :: where appropriate :-)
I know Hebrew pretty well, so to clarify the name "Paamayim Nekudotayim" for you, the paraphrased meaning is "double colon", but translated literally:
:: denotes "two times, two dots", or more commonly known as the Scope Resolution Operator.Edit: Unfortunately, as of PHP 8.0, the answer is not "No, not anymore". This RFC was not accepted as I hoped, proposing to change T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON; but it was declined.
Note: I keep this answer for historical purposes. Actually, because of the creation of the RFC and the votes ratio at some point, I created this answer. Also, I keep this for hoping it to be accepted in the near future.
This can happen on foreachs when using:
foreach( $array as $key = $value )
instead of
foreach( $array as $key => $value )
This just happened to me in a string assignment using double quotes. I was missing a closing curly on a POST variable...
"for {$_POST['txtName'] on $date";
should have been
"for {$_POST['txtName']} on $date";
I can't explain why. I mean, I see the error that would break the code but I don't see why it references a class error.
This just happened to me in a foreach loop. I had inadvertently typed ($array as $key as $value) and PHP objected to the first as.