When I run update.php, I get
Parse error: syntax error, unexpected 'PUBLIC' (T_PUBLIC) in /homepages/24/d681484044/htdocs/modules/email_confirmer/src/Entity/EmailConfirmation.php on line 127
This totally kills my site!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | email_confirmer-php5-error-on-constant-2922182-2.patch | 1.92 KB | manuel.adan |
Comments
Comment #2
manuel.adanIt seems to happen only on PHP5, testing in PHP 5.6.30 I got the same error. "PUBLIC" nor "PRIVATE" are invalid constant names in PHP5, however, I didn't find any in the documentation at a quick glance. Patch solves it, plz confirm that it also works for you. I'll commit it in less than 2 hours, within a new release.
Comment #3
manuel.adanConfirmed, from http://php.net/manual/en/reserved.keywords.php
"As of PHP 7.0.0 these keywords are allowed as property, constant, and method names of classes, interfaces and traits, except that class may not be used as constant name. "
Comment #5
manuel.adanCommitted and fixed in new release (8.x-1.0-beta3).
Comment #7
manuel.adan