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
PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/vendor/symfony/cache/Traits/RedisTrait.php on line 390
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/vendor/symfony/cache/Traits/RedisTrait.php on line 390
This PR was merged into the 4.4 branch.
Discussion
----------
[Cache] do not pass null to strlen()
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#46530
| License | MIT
| Doc PR |
Commits
-------
4a9d6a5 [Cache] do not pass null to strlen()
Symfony version(s) affected
5.4.9
Description
Hi,
When running the following command :
bin/console doctrine:cache:clear-result
I'm getting the following error :
Here is my cache config :
The doClear in RedisTrait should return '' and not null :
$prefix = $this->redis->getOptions()->prefix ? $this->redis->getOptions()->prefix->getPrefix() : '';
Thanks in advance,
Julien
How to reproduce
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: