Skip to content

symfony/http-foundation incompatibility with Drupal 10 #259

@davejenx

Description

@davejenx

Trying nz.co.fuzion.omnipaymultiprocessor version 3.21 with Civi 5.65.2 on Drupal 10.1.6, getting the following error:

PHP Fatal error: Declaration of Symfony\Component\HttpFoundation\ResponseHeaderBag::all() must be compatible with Symfony\Component\HttpFoundation\HeaderBag::all(?string $key = null): array in .../nz.co.fuzion.omnipaymultiprocessor-3.21/vendor/symfony/http-foundation/ResponseHeaderBag.php on line 93

The extension's composer.lock has symfony/http-foundation version "4.4.x-dev", which comes as a dependency of:

  • omnipay/common - require "symfony/http-foundation": "^2.1|^3|^4|^5|^6"
  • omnipay/tests v3.1.1 - require-dev "symfony/http-foundation": "^3|^4"

The site's composer.lock has symfony/http-foundation version "v6.3.7", which comes as a dependency of, among others:

  • drupal/core - "symfony/http-foundation": "^6.3"

So omnipay/tests seems to be the thing holding it back. The extension's composer.lock has various packages requiring omnipay/tests under require-dev (but none as non-dev require), including omnipay/common which specifies "omnipay/tests": "^4.1", which confusingly doesn't fit with the installed version, omnipay/tests v3.1.1 .

Has anyone got this working on D10?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions