Not working in PHP 8.2 because of voku/portable-utf8/src/voku/helper/UTF8.php
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.
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 the WordStemmer 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
Hiya, any updates to this?
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
"repositories": [
{
"type": "github",
"url": "https://github.com/ThomasEnssner/portable-utf8"
}
]
2.3.2 will use a new version 3 of PHP Stemmer, hopefully that fixes your issue
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.
PHP 8.2 support for wamania/php-stemmer: https://github.com/wamania/php-stemmer/pull/26
Has this been resolved now?