soup-bowl / wp-simple-smtp

📨 WordPress SMTP plugin. Plain and simple.
https://wordpress.org/plugins/simple-smtp
MIT License
24 stars 5 forks source link

unexpected 'list' (T_LIST), expecting identifier (T_STRING) #140

Closed medicamin closed 1 year ago

medicamin commented 1 year ago

What WordPress, PHP and Simple SMTP versions are you using? WordPress 6.1, PHP 7.4, Simple SMTP 1.3.2.1

Describe the bug I see this error in my error logs: Parse error: syntax error, unexpected 'list' (T_LIST), expecting identifier (T_STRING) in /home/***/public_html/wp-content/plugins/simple-smtp/src/cli/class-emaillog.php on line 112

The plugin works great, but I get this error in logs.

soup-bowl commented 1 year ago

I seem to run afoul of conflicting with the inbuilt list function in the WordPress CLI functionality. Thanks for reporting this. I'll fix this in the next release.

Interesting this has never flagged before (and my Gitpod environment doesn't flag it either) - are you running PHP in debug mode?

medicamin commented 1 year ago

Thank you for your rapid reply! I only installed a wordpress plugin to show the php errors in my dashboard.