-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Predis 3 #15287
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
Predis 3 #15287
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 7.x #15287 +/- ##
============================================
- Coverage 66.41% 66.41% -0.01%
- Complexity 35210 35211 +1
============================================
Files 2319 2319
Lines 141913 141915 +2
============================================
- Hits 94257 94256 -1
- Misses 47656 47659 +3
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR upgrades the Predis Redis client library from version 1.1.10 to 3.0.1 to resolve PHP 8.4 deprecation warnings related to implicit nullable parameter types. The upgrade includes necessary code changes to accommodate breaking changes in Predis v3's API.
Key changes include:
- Updating composer dependency from
predis/predis: ^1.1
to^3.0
- Adapting to new namespace structure and API changes in Predis v3
- Modifying custom command implementation to work with the new command factory system
Reviewed Changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
app/composer.json | Updates Predis dependency version constraint to ^3.0 |
app/bundles/CoreBundle/Helper/PRedisConnectionHelper.php | Updates imports, command registration, and connection handling for Predis v3 compatibility |
app/bundles/CoreBundle/Tests/Unit/Helper/PRedisConnectionHelperTest.php | Updates test to use new command factory API instead of deprecated profile methods |
app/bundles/CoreBundle/Predis/Command/Unlink.php | Refactors custom command to implement new Predis v3 command interface |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code changes look good. The test confirms that the Unlink::ID is present. Thank you!
Description
This PR resolves several PHP 8.4 deprecations by upgrading
predis/predis
fromv1.1.10
tov3.0.1
, along with code changes required by breaking changes in Predis v3.Below is the list of PHP 8.4 deprecations that were reported:
📋 Steps to test this PR:
Testing this PR requires knowledge of Redis.