Skip to content

Commit

Permalink
[Config] ensure moving away from Serializable wont break cache:clear
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jan 30, 2019
1 parent 3cfb558 commit 562ea51
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -159,7 +159,7 @@ private function safelyUnserialize($file)
$signalingException = new \UnexpectedValueException();
$prevUnserializeHandler = ini_set('unserialize_callback_func', '');
$prevErrorHandler = set_error_handler(function ($type, $msg, $file, $line, $context = []) use (&$prevErrorHandler, $signalingException) {
if (E_WARNING === $type && 'Class __PHP_Incomplete_Class has no unserializer' === $msg) {
if (__FILE__ === $file && preg_match('/^Class .* has no unserializer$/', $msg)) {
throw $signalingException;
}

Expand Down

0 comments on commit 562ea51

Please sign in to comment.