danielmewes / php-rql

A PHP client driver for the RethinkDB query language (ReQL).
http://php-rql.dnsalias.net/
339 stars 60 forks source link

Workaround for Syntax error on "Match" #165

Open asdf072 opened 2 years ago

asdf072 commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

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 commented 1 week ago

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

Geekimo commented 1 week ago

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

gensart-x commented 1 week ago

Splendid! Thanks @Geekimo