-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
symfony/http-foundation incompatibility with Drupal 10 #259
Comments
Same issue here: What is going on ? |
Related, but on civi 5.69.5 and drupal 9.5.11 Declaration of Symfony\Component\HttpFoundation\JsonResponse::create($data = null, int $status = 200, array $headers = []) must be compatible with Symfony\Component\HttpFoundation\Response::create($content = '', $status = 200, $headers = []) in nz.co.fuzion.omnipaymultiprocessor/vendor/symfony/http-foundation/JsonResponse.php on line 73 |
Hi team I have solved a similar issue Our solution was to identify which symfony library caused the issue from the above error message we can see this is symfony/http-foundation Repeating steps here in case helpful for others. I used
composer why symfony/http-foundation i.e. composer upgrade --dry-run -w and composer upgrade -w if that succeeds. |
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:
The site's composer.lock has symfony/http-foundation version "v6.3.7", which comes as a dependency of, among others:
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?
The text was updated successfully, but these errors were encountered: