-
Notifications
You must be signed in to change notification settings - Fork 83
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
Dependency on Psr/log breaks sites using different versions #490
Comments
duplicate of #470 |
Altough I agree that it would fix this issue, I also think it's a short-sighted fix. Would it be possible to do some namespace scoping with Mozart or PHP-Scoper instead? |
I'm yet to find an example of either of these projects where it doesn't a) increase release/maintenance burden or b) impact local development/testing. right now, this isn't enough of an issue to warrant introducing a higher barrier to running and maintaining this plugin. if we can find a solution to those, I'm open to the possibility. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@jacobbednarz I've run in to exactly this dependency issue just now. It seems Psr/Log can't be updated to maintain PHP 7 compatibility, so namespacing your use of it might be the only option left? Would you accept a PR adding Mozart and adding a namespace? |
Just to add incase this is helpful for anyone else, check what versions your other packages accept, you might get lucky. In my case, I'm installing Before: {
"require": {
"chrome-php/chrome": "^1.9"
}
} After: {
"require": {
"chrome-php/chrome": "^1.9",
"psr/log": "^1.0"
}
}
|
@jacobbednarz Hi 👋 , adding another voice here, we're experiencing this issue with all sites built using roots/acorn as they're requiring Totally understand the need to keep a WP plugin supporting 7.4 and you're not alone in this dependency conflict (same issue reported to WPML for example), however it seems this issue will grow the longer it's left. Is #541 an option? If not (or better: to prevent similar issues in future), is it time to reconsider namespacing? |
Confirmation
WordPress version
6.0
Cloudflare-WordPress version
4.10.1
PHP version
8
Expected result
A fatal error should not occur.
Actual result
A fatal error with the following message occurs.
Steps to reproduce
Additional factoids
No response
References
A similar issue has occured and has been dealt with in #445.
The text was updated successfully, but these errors were encountered: