Skip to content
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

Conflict with psr/log when used with Symfony >= 6 #6867

Open
gaea44 opened this issue Dec 12, 2023 · 1 comment
Open

Conflict with psr/log when used with Symfony >= 6 #6867

gaea44 opened this issue Dec 12, 2023 · 1 comment
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@gaea44
Copy link

gaea44 commented Dec 12, 2023

Environment details

  • OS: Linux Mint 21.2 / Kernel 6.2.0-37
  • PHP version: 8.3.0
  • Package name and version: google/cloud-logging v1.28.5 Latest

Since version 1.22.1, google/cloud-logging adds conflict with psr/log >=3, preventing the use with Symfony framework.

Steps to reproduce

  1. Install last Symfony last version
composer create-project symfony/skeleton:"7.0.*@dev" my_project_directory
  1. Install google/cloud-logging last version
composer require google/cloud-logging
  1. The following error should occurs :
Using version ^1.28 for google/cloud-logging
./composer.json has been updated
Running composer update google/cloud-logging
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - google/cloud-logging[v1.28.0, ..., v1.28.5] conflict with psr/log >=3.
    - symfony/http-kernel v7.0.1 requires psr/log ^1|^2|^3 -> satisfiable by psr/log[3.0.0].
    - symfony/framework-bundle v7.0.1 requires symfony/http-kernel ^6.4|^7.0 -> satisfiable by symfony/http-kernel[v7.0.1].
    - symfony/framework-bundle is locked to version v7.0.1 and an update of this package was not requested.
    - Root composer.json requires google/cloud-logging ^1.28 -> satisfiable by google/cloud-logging[v1.28.0, ..., v1.28.5].
@bshaffer
Copy link
Contributor

Hello @gaea44!
unfortunately, as we still support PHP 7.4 (something that will be changing in the next couple months), we cannot support psr/log:3 because the interface requires union types, and our PsrLogger would throw a syntax error on PHP 7.4 if we added the union type syntax.

As soon as we drop support for PHP 7.4 (which should be in early 2024), we'll be able to support psr/log 3.

@bshaffer bshaffer added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

2 participants