You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deprecated warnings in PHP 8.4 when creating RedisConfig (v9.2.4) #930
Deprecated warnings in PHP 8.4 when creating RedisConfig (v9.2.4)
Summary
Using phpFastCache v9.2.4 with PHP 8.4 triggers deprecation warnings when creating a RedisConfig instance, even though the public API is being used as documented.
Deprecated: This method is deprecated and will be soon moved to IOConfigurationOption class, which means they will only be available for `IO` drivers.
The warning points to:
Phpfastcache\Config\ConfigurationOption
Expected behavior
Creating a RedisConfig object using the documented constructor should not trigger deprecation warnings.
Notes
It appears that RedisConfig internally calls deprecated setter methods defined in ConfigurationOption during construction. While these methods are marked as deprecated for future migration to IOConfigurationOption, using the current public API still results in deprecation notices.
Could the constructor be updated to avoid calling deprecated methods internally, or is there a new recommended way to configure Redis that avoids these warnings?
Thank you!
Expected behavior
No response
Code sample (optional)
No response
Suggestion to fix the issue (optional)
No response
References (optional)
No response
Do you have anything more you want to share? (optional)
Activity
github-actions commentedon Aug 3, 2026
Hello curious contributor !
Since it seems to be your first contribution, make sure that you've been:
If everything looks unclear to you, tell us what 😄
The Phpfastcache Team