-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Replacing laminas/laminas-zendframework-bridge without providing its functionality breaks packages #2028
Comments
Package |
Yes, of course, fair enough, but why does composer.json claims that phpword replaces the bridge via |
I agree with @mussbach, the replacement breaks compatibility with other packages that need it. |
@troosan would you mind checking this and perhaps publish a version 0.18.1? Otherwise we could unfortunately not install version 0.18 at all |
While waiting for the fix, you can use an alias as a workaround: https://getcomposer.org/doc/articles/aliases.md |
Thank you @damienlaguerre, this is a good idea |
Describe the Bug
In f2516b0 (#1946) was introduced that this package replaces
laminas/laminas-zendframework-bridge
. I do not really understand why this package should be replaced by phpword, which is especially weird as newly requiredlaminas/laminas-escaper
itself requireslaminas/laminas-zendframework-bridge
In my opinion #1946 breaks setups where other libraries need
laminas/laminas-zendframework-bridge
. I am a bit hesitating, as no one else seems to have this problem. Perhaps anybody could help me to understand, what happens here?Steps to Reproduce
Install phpword 0.18 in a setup with a package requiring the bridge. Then call anything.
Expected Behavior
Nothing should break
Current Behavior
A fatal error occurs
Attempted to load class "ClassGenerator" from namespace "Zend\Code\Generator". Did you forget a "use" statement for e.g. "Laminas\Code\Generator\ClassGenerator"
Context
Please fill in your environment information:
The text was updated successfully, but these errors were encountered: