#54072Incorrect error message in Redis cache backend
Description
cache.lifetime is being checked if it is integer, but the following exception:
Oops, an error occurred! The specified lifetime is of type "string" but a string or NULL is expected.
Corresponding lines of class.t3lib_cache_backend_redisbackend.php:
[line 347] $lifetimeIsNull = is_null($lifetime);
[line 348] $lifetimeIsInteger = is_integer($lifetime);
[line 349]
[line 350] if (!$lifetimeIsNull && !$lifetimeIsInteger) {
[line 351] throw new \InvalidArgumentException(
[line 352] ‘The specified lifetime is of type “’ . gettype($lifetime) . ‘” but a string or NULL is expected.’,
It should be:
[line 352] ‘The specified lifetime is of type “’ . gettype($lifetime) . ‘” but a integer or NULL is expected.’,
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.