Support for psr/log:^2.0 |
TLDR; Version: If not too much trouble, I am hoping that future releases of codeigniter4/framework will support psr/log composer package version 2.X or 3.X. Or if no additional headache, 1.X, 2.X or 3.X.
Longer Version: I work as a software architect at my company and am currently in charge of upgrading our large 15+ year old PHP monolith application. We are currently running PHP 8.0 and about to pull the trigger on updating to 8.1, with our 8.2 upgrade planned to release by Nov 2025. During my testing I quickly discovered that codeigniter 3 and php 8.2 will never play well together. So I started planning the migration to version 4, and unfortunately starting a new repo is not an option, as codeigniter driven stuff is only a portion of the entire monolith. I had a successful POC branch running both CI 3 (3.1.13) and CI 4 (v4.4.8) in the same project, toggling which framework to load based on the request uri. This will allow us to spend about a year porting features from CI 3 to CI 4. My current concern is that we are stuck on psr/log:^2.0 in my project for the next several months until I upgrade multiple other heavy packages in order to allow us to upgrade to 3.X. Codeigniter4/framework >= v4.5.0 requires psr/log:^3.0 in the composer.json file, and therefore does not support version 2.X. I really don't want to have to downgrade psr/log to version 1.X to use the v4.4.8 release (since it only supports psr/log:^1.0) and I'm not sure about how long the 4.4.X branch will be supported/updated moving forward, plus there are only 2 releases < v4.5.0 without security vulnerabilities. So what I am essentially asking is would it be possible to have codeigniter4/framework repo support psr/log 2.X AND 3.X (also if not too much trouble, 1.X to ease migration for your users from v4.4.8 to v4.5.X)? According to the changelog, the only difference between psr/log 2.X and 3.X was adding void return types to the traits and interfaces. Many vendors allow multiple versions for this package, with several allowing all 3 versions. Would be great if this change could make it either into future v4.5.X releases, or v4.6.X releases if too late for v4.5.X. Mike |
Messages In This Thread |
Support for psr/log:^2.0 - by mteall - 07-17-2024, 01:37 AM
RE: Support for psr/log:^2.0 - by kenjis - 07-17-2024, 03:54 AM
RE: Support for psr/log:^2.0 - by kenjis - 07-17-2024, 04:10 AM
RE: Support for psr/log:^2.0 - by mteall - 07-17-2024, 10:55 AM
RE: Support for psr/log:^2.0 - by kenjis - 07-17-2024, 01:11 PM
RE: Support for psr/log:^2.0 - by mteall - 07-17-2024, 01:37 PM
|