php-rql icon indicating copy to clipboard operation
php-rql copied to clipboard

Workaround for Syntax error on "Match"

Open asdf072 opened this issue 2 years ago • 5 comments

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.

asdf072 avatar Mar 27 '22 17:03 asdf072

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

3llipsystem avatar Apr 26 '22 14:04 3llipsystem

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.

ElusiveMind avatar Sep 17 '23 21:09 ElusiveMind