zytzagoo / smtp-validate-email

A PHP library for performing email addresses validation via SMTP
GNU General Public License v3.0
437 stars 155 forks source link

Parse error #48

Closed ip-to-geolocation closed 4 years ago

ip-to-geolocation commented 5 years ago

I have precisely followed the instructions, installed with composer, and created a PHP file containing a copy past of the first exemple, on a freshly installed centos 7.

i get this output:

Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/html/vendor/zytzagoo/smtp-validate-email/src/Validator.php on line 982

Any suggestions ?

thanks a lot

zytzagoo commented 5 years ago

Which version did you install? Do you have composer install log/output saved somewhere maybe?

Line 982 does not contain the "class" keyword at all: master: https://github.com/zytzagoo/smtp-validate-email/blob/master/src/Validator.php#L982 v1.0: https://github.com/zytzagoo/smtp-validate-email/blob/v1.0.0/src/Validator.php#L982

(incidentally, v0.7 does not even have L982...)

Without more details, it's really hard to say anything conclusive at this point...