php-rql
php-rql copied to clipboard
Workaround for Syntax error on "Match"
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.
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
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.