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

Class imcompatiblity #89

Closed
gaetan-petit opened this issue Jun 18, 2021 · 4 comments
Closed

Class imcompatiblity #89

gaetan-petit opened this issue Jun 18, 2021 · 4 comments
Assignees
Labels
Bug Something isn't working Invalid This doesn't seem right

Comments

@gaetan-petit
Copy link

BC Break Report

Q A
Version 4.4.0

Summary

Ugrading to 4.4.0 in a Symfony 3.4 application cause compatibility error.

Current behavior

composer update 
Loading composer repositories with package information
Restricting packages listed in "symfony/symfony" to "3.4.*"
Updating dependencies
Lock file operations: 0 installs, 5 updates, 2 removals
  - Removing laminas/laminas-eventmanager (3.3.1)
  - Removing laminas/laminas-zendframework-bridge (1.2.0)
  - Upgrading laminas/laminas-code (4.3.0 => 4.4.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 5 updates, 2 removals
  - Downloading laminas/laminas-code (4.4.0)
  - Downloading phpstan/phpstan (0.12.90)
  - Removing laminas/laminas-zendframework-bridge (1.2.0)
  - Removing laminas/laminas-eventmanager (3.3.1)
  - Upgrading laminas/laminas-code (4.3.0 => 4.4.0): Extracting archive
Generating autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class

Symfony operations: 2 recipes (5471d04139cfeb8c88ad90ba4a997ba1)
  - Unconfiguring laminas/laminas-zendframework-bridge (>=1.2.0): From auto-generated recipe
  - Unconfiguring laminas/laminas-eventmanager (>=3.3.1): From auto-generated recipe
Executing script cache:clear --no-warmup [KO]
 [KO]
Script cache:clear --no-warmup returned with error code 255
!!  PHP Fatal error:  Could not check compatibility between Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\LazyLoadingValueHolderGenerator::generate(ReflectionClass $originalClass, Zend\Code\Generator\ClassGenerator $classGenerator) and ProxyManager\ProxyGenerator\LazyLoadingValueHolderGenerator::generate(ReflectionClass $originalClass, Laminas\Code\Generator\ClassGenerator $classGenerator), because class Zend\Code\Generator\ClassGenerator is not available in /var/www/marketplace/vendor/symfony/proxy-manager-bridge/LazyProxy/PhpDumper/LazyLoadingValueHolderGenerator.php on line 25

How to reproduce

Running composer update on application.

@Ocramius
Copy link
Member

Ocramius commented Jun 18, 2021 via email

@gaetan-petit
Copy link
Author

gaetan-petit commented Jun 18, 2021

In our app several packages requires ocramius/proxy-manager (including symfony/proxy-manager-bridge) that require laminas/laminas-code
I'm not really familiar with the ProxyManagers where do you think the dependency is missing @Ocramius ?

@Ocramius
Copy link
Member

Ocramius commented Jun 18, 2021 via email

@Ocramius
Copy link
Member

Closing here: issue exists in symfony/symfony#41742, not here.

Suggestions have been made for upstream, but intentionally ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants