container-interop/container-interop is abandoned

Created on 16 December 2021, over 2 years ago
Updated 29 September 2023, 9 months ago

Problem/Motivation

Installing this package via Composer throws a warning:

Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead.

I know this is "just a warning" and end users can safely ignore it, but it's still an indicator of a problem and potential danger (bad things happen to abandoned packages) and needs to be addressed.

This is due to Upgrade Status' dependency on mathieuviossat/arraytotexttable, which through a chain of dependencies relies on laminas/laminas-servicemanager. That package has a PR to remove container-interop but it seems stalled, and the lack of activity on downstream projects makes me not so confident that they'd ever upgrade once it's fixed: https://github.com/laminas/laminas-servicemanager/pull/96

Steps to reproduce

composer require drupal/upgrade-status

Proposed resolution

Consider an alternative to mathieuviossat/arraytotexttable

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Dane Powell

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States amanire

    I think this is a duplicate of https://www.drupal.org/project/upgrade_status/issues/3345997 πŸ› Package x is abandoned Fixed ?

  • Status changed to Closed: duplicate 9 months ago
  • πŸ‡­πŸ‡ΊHungary GΓ‘bor Hojtsy Hungary

    Yeah https://packagist.org/packages/mathieuviossat/arraytotexttable#v1.0.7 still dependened on Zend but later versions moved to Laminas and it does not depend on container-interop either. 4.x and 3.x of Upgrade Status both depend on "mathieuviossat/arraytotexttable": "~1.0.0", so they should have picked up this fix. Marking duplicate of πŸ› Package x is abandoned Fixed indeed.

  • πŸ‡¬πŸ‡§United Kingdom MustangGB Coventry, United Kingdom

    Just to mention there is another slight "problem" with mathieuviossat/arraytotexttable.

    That being it effectively prevents PHP 8.2 usage.

    Reason being that drupal/core-recommended wants psr/container v2.

    Whereas mathieuviossat/arraytotexttable wants psr/container v1.

    It "kind of works" because laminas/laminas-servicemanager v3.15.0 (which is a dependency of laminas/laminas-text which is a dependency of mathieuviossat/arraytotexttable) allowed for psr/container v1/v2, however this was quickly realised as BC breaking and rolled back.

    However as a side effect laminas/laminas-servicemanager v3.15.0 also has PHP 8.1 as a restriction.

    The end result being the only option for using drupal/core-recommended and mathieuviossat/arraytotexttable is to use the "broken" laminas/laminas-servicemanager v3.15.0, therefore no PHP 8.2 option.

    That being said there is a laminas/laminas-servicemanager v4.0.0-rc2 that does support psr/container v2 and PHP 8.2, so this could be resolved soon-ish.

Production build 0.69.0 2024