Skip to content

api-platform/doctrine-common requires abandoned doctrine/common but doesn't appear to use it #8835

Closed

Description

@gassan

api-platform/doctrine-common (v5.0.6, also main) requires doctrine/common: ^3.2.2, and that package is marked as abandoned on Packagist. Because of this, every downstream project gets an abandoned-package warning from composer install and composer audit.

Claude grepped the installed package and found no references to doctrine/common classes (Doctrine\Common\Util\*, Proxy\*, ClassLoader, CommonException, Comparable). Every Doctrine\Common\… match belongs to the ApiPlatform\Doctrine\Common\… namespace. The requirement may be left over from the ClassUtils removal (#6331).

Could you check whether the requirement can be dropped?

Activity

  1. Zegui81 commented on Nov 11, 2026

    @Zegui81

    Confirming on a production app (API Platform 4.4.7, Doctrine ORM 3.7, PHP 8.5): removing doctrine/common entirely via a root replace leaves PHPStan level 8 clean, lint:container valid and our full Playwright suite green (148/148). The only remaining references in our vendor/ are a catch (CommonException ...) in phpstan-doctrine and a string class-name map in symfony/var-dumper, both inert when the class is absent. Happy to open a PR dropping the requirement from src/Doctrine/Common/composer.json, and a 4.4 backport if you'd take one.

  2. added a commit that references this issue on Nov 12, 2026
    8b6be9c
  3. added a commit that references this issue on Nov 13, 2026
    5b95001
  4. soyuka commented on Nov 13, 2026

    @soyuka
    Member

    Fixed by #8838.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions