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

Workaround for Syntax error on "Match" #165

Open
asdf072 opened this issue Mar 27, 2022 · 5 comments
Open

Workaround for Syntax error on "Match" #165

asdf072 opened this issue Mar 27, 2022 · 5 comments

Comments

@asdf072
Copy link

asdf072 commented Mar 27, 2022

Anyone using this w/ PHP 8+ will get a syntax error from using the new keyword "Match" in r\ValuedQuery\ValuedQuery. Renaming the import to use r\Queries\Math\Match AS RqlMatch; and calling it in the Match method return new RqlMatch($this, $expression); fixes the issue.

@3llipsystem
Copy link

hi i have this problem indeed but i'm not sure where i get to change that. in the match.php file ? can you send me a sample with the code updated ? thank you

@ElusiveMind
Copy link

I have a fork of this repo with numberous PHP 8 and 8.2 deprecation and error fixes if anyone is interested. Also forked on packagist.

@gensart-x
Copy link

I wonder if someone's willing to upload it to packagist so it can be easier to install via Composer CLI.

@Geekimo
Copy link

Geekimo commented Oct 10, 2024

@gensart-x I made a fork that includes that fix.
https://packagist.org/packages/geekimo/php-rql

@gensart-x
Copy link

Splendid! Thanks @Geekimo

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

5 participants