Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse error: syntax error, unexpected '.', expecting '&' or variable #112

Open
andrewharrod opened this issue Jul 3, 2024 · 4 comments
Open

Comments

@andrewharrod
Copy link

Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /opt/cpanel/ea-php73/vendor/dshafik/php7-mysql-shim/lib/mysql.php on line 551

@dshafik
Copy link
Owner

dshafik commented Jul 3, 2024

Have you updated to the latest version?

Can you paste line 551 from your file here? It doesn't look incorrect to me.

@andrewharrod
Copy link
Author

We just installed a few days ago and can't seem to get rid of this error. Here is line 551.

function mysql_fieldname(... $args)

@dshafik
Copy link
Owner

dshafik commented Jul 3, 2024

So the issue is here is that you've installed what looks to be v0.2.0, when the latest is 1.0.0beta4.

I suspect you either manually chose to not install a beta, assuming 0.2.0 was more stable, or composer did. This is incorrect, in semantic versioning, all < 1.0 are unstable. Install 1.0.0beta4 and try again.

Also it's worth noting that you're using PHP 7.3, which has been unsupported and EOL for over two and a half years. And trying to use a library that is no longer actively maintained, that was always meant to be a temporary solution in the first place.

@andrewharrod
Copy link
Author

andrewharrod commented Jul 4, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants