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
While the user doesn't delete the session data or clear cache of the browser, this exception occurrs when I access to panel profile > "Request/Response" > tab "Session" > "Session Attributes" and exists a serialized object (in session) whose class doesn't exist. Here has threw the exception:
//Symfony\Component\HttpKernel\DataCollector\Util\ValueExporter.php line #76return (string) $value; //instance of __PHP_Incomplete_Class
Since in these cases is_object will return false, I propose to add the following code to avoid the exception and display a readable value to the user:
// Special case of objectif ($valueinstanceof \__PHP_Incomplete_Class) {
$array = new \ArrayObject($value);
returnsprintf('__PHP_Incomplete_Class(%s)', $array['__PHP_Incomplete_Class_Name']);
}