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

ErrorException: Array and string offset access syntax with curly braces is deprecated #198

Closed
greghunt opened this issue Dec 1, 2019 · 4 comments

Comments

@greghunt
Copy link

greghunt commented Dec 1, 2019

return preg_match("#$c{2}$#", $str, $matches) && $matches[0][0] == $matches[0][1];

In PHP 7.4, I get the following Exception when indexing records:

ErrorException: Array and string offset access syntax with curly braces is deprecated in /vendor/teamtnt/tntsearch/src/Stemmer/PorterStemmer.php:396
@vbasky
Copy link

vbasky commented Dec 3, 2019

I am running into the same issue after upgrading to PHP 7.4. I have raised a similar issue on another repo teamtnt/laravel-scout-tntsearch-driver#257. Apparently the issue has been fixed but the master is behind and has not been release tagged. We need another tag update possibly v2.2.0 until then things are broken

@nticaric
Copy link
Contributor

nticaric commented Dec 3, 2019

hey guys, a new version has been released v2.2.0, whis should fixed the curly braces issue. please test it and let me know

@vbasky
Copy link

vbasky commented Dec 3, 2019

Perfect works as expected thanks @nticaric

@nticaric
Copy link
Contributor

nticaric commented Dec 3, 2019

great!

@nticaric nticaric closed this as completed Dec 3, 2019
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

3 participants