Closed
Description
Symfony version(s) affected: 4.4.24
Description
I frequently get the following error in my prod server logs : Return value of Symfony\\Component\\HttpKernel\\HttpCache\\Store::getMetadata() must be of the type array, bool returned
How to reproduce
I don't know in which cases the error occurs, and I wasn't able to reproduce it.
Possible Solution
I think we should handle non-array return types of the unserialize
method.
Additional context
{
"class": "Symfony\\Component\\Debug\\Exception\\FatalThrowableError",
"message": "Return value of Symfony\\Component\\HttpKernel\\HttpCache\\Store::getMetadata() must be of the type array, bool returned",
"code": 0,
"file": "vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/Store.php:301",
"trace": [
"vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/Store.php:134",
"vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:330",
"vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:222",
"vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/AbstractSurrogate.php:96",
"vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(637) : eval()'d code:360",
"vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:637",
"vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:225",
"public/index.php:31"
]
}