-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
This package should not "replace" zend/code #37
Comments
Sorry, I just realized that this package does require There is, however, an issue with composer autoloading I think:
Even though diffing Is this a bug with composer, should I file a bug there? |
Looks like I somehow ended up with a broken composer config. Here's how I fixed it:
Tell me why, but I believe there's a bug somehow with composer, but I wasn't able to make a reproducible test case after more than one hour, so I'm giving up now. Maybe the steps above will help someone with the same issue I encountered. |
I had the same problem. I suspect symfony flex to have messed with the dependencies. IMO the bug should be open as I think you are right about the fact that this package is NOT a "replace"(ment) of zend-code. |
@magnetik IDK, because it requires the bridge, it effectively replaces zend-code, with no modification required on code using the library. |
@magnetik are you using latest composer version? |
I'm running 1.9.2 |
Hum but maybe that's someone on my team that was using 1.8.6 that did the composer update. Could this be it? |
Thanks a bunch for this comment. This is exactly what I had to do. |
There is some kind of issue here that looks more of a support kind rather than a bug. |
@Xerkus Indeed, I don't think there's any issue with laminas-code. |
Probably this one I've just discovered. If yes then temporary workaround is just not to use |
Bug Report
Summary
This package is marked as replacing
zendframework/zend-code
:laminas-code/composer.json
Lines 67 to 69 in 8499ce0
There seems to be a misunderstanding in what
replace
actually does: the package must be 100% compatible with the replaced one, which is obviously not the case here.As it stands, this breaks composer installations and throws class not found errors.
Sure, you can install the
laminas/laminas-zendframework-bridge
, but composer doesn't do that automatically.Current behavior
How to reproduce
Install
ocramius/proxy-manager
on PHP 7.3; try to use it.The text was updated successfully, but these errors were encountered: