Allow wamania/php-stemmer:^3.0 for full PHP 8.2 compatibility

Created on 20 November 2023, 10 months ago
Updated 26 November 2023, 10 months ago

Problem/Motivation

When using PHP 8.2 you might get a lot of of the following deprecation notices:

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 5742
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/voku/portable-utf8/src/voku/helper/UTF8.php on line 13398

To make wamania/php-stemmer and its dependency voku/portable-utf8 PHP 8.2 compatible we would need to allow version 3 to be installable as well. So something like this, if both should still be maintained, or just use ^3.0, which still is backwards compatible. This will bring the updated voku/portable-utf8 package in as well.

"require": {
  "wamania/php-stemmer": "^2.0 || ^3.0"
},

or

"require": {
  "wamania/php-stemmer": "^3.0"
},

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

🇩🇪Germany szeidler Berlin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @szeidler
  • 🇦🇹Austria maxilein

    Cannot install

    Your requirements could not be resolved to an installable set of packages.

    Problem 1
    - Root composer.json requires drupal/snowball_stemmer ^2.1 -> satisfiable by drupal/snowball_stemmer[2.1.0, 2.1.1, 2.1.2].
    - drupal/snowball_stemmer[2.1.0, ..., 2.1.2] require wamania/php-stemmer ^2.0 -> found wamania/php-stemmer[v2.0, v2.1, v2.1.1, v2.2.0] but these were not loaded, likely because it conflicts with another require.

    • ekes committed 12a8e2da on 2.x
      Issue #3402727 by szeidler, ekes: Allow wamania/php-stemmer:^3.0 for...
  • Status changed to Fixed 10 months ago
  • 🇳🇱Netherlands ekes

    Added || ^3.0 in release 2.1.3

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024