Return value of Symfony\Component\ErrorHandler\Exception\FlattenException::getCode()... Ошибка

Return value of Symfony\Component\ErrorHandler\Exception\FlattenException::getCode() must be of the type int, string returned

В нашем случае ошибка возникает при вызове десериаллизации