8000 [Config] ensure moving away from Serializable wont break cache:clear · symfony/symfony@562ea51 · GitHub
[go: up one dir, main page]

Skip to content

Commit 562ea51

Browse files
[Config] ensure moving away from Serializable wont break cache:clear
1 parent 3cfb558 commit 562ea51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Config/ResourceCheckerConfigCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private function safelyUnserialize($file)
159159
$signalingException = new \UnexpectedValueException();
160160
$prevUnserializeHandler = ini_set('unserialize_callback_func', '');
161161
$prevErrorHandler = set_error_handler(function ($type, $msg, $file, $line, $context = []) use (&$ 5637 prevErrorHandler, $signalingException) {
162-
if (E_WARNING === $type && 'Class __PHP_Incomplete_Class has no unserializer' === $msg) {
162+
if (__FILE__ === $file && preg_match('/^Class .* has no unserializer$/', $msg)) {
163163
throw $signalingException;
164164
}
165165

0 commit comments

Comments
 (0)
0