Open
Description
I get the following error when using this Rubix ML with PHP 8.2:
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 4653
.wamania/php-stemmer v2.2.0 requires voku/portable-utf8 (^5.4).
I wasn't able to include a newer version of voku/portable-utf8, because it wouldn't match the requirements for Rubix ML / php-stemmer.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
andrewdalpino commentedon Jan 6, 2023
Hey thanks for the heads up @follestad ... definitely something we'll look into further!
If you want to hack it for now, you could remove the
wamania/php-stemmer
dependency and delete theWordStemmer
tokenizer. We only use this library for one thing and it's the Word Stemmer tokenizer.https://github.com/RubixML/ML/blob/master/src/Tokenizers/WordStemmer.php#L6
tyteen4a03 commentedon Feb 20, 2023
Hiya, any updates to this?
ThomasEnssner commentedon Mar 6, 2023
I have a fork for that Package....
https://github.com/ThomasEnssner/portable-utf8/releases/tag/5.5.0
Change your Dependency to
"voku/portable-utf8": "5.x-dev"
and add this to your composer.json file
andrewdalpino commentedon Mar 12, 2023
2.3.2 will use a new version 3 of PHP Stemmer, hopefully that fixes your issue
myfluxi commentedon Apr 8, 2023
Just as a heads-up: If you do not want to fork repos because of trivial issues (such as this one here), https://github.com/symplify/vendor-patches comes in very handy.
marclaporte commentedon May 18, 2023
PHP 8.2 support for wamania/php-stemmer:
wamania/php-stemmer#26
andrewdalpino commentedon May 27, 2023
Has this been resolved now?