Skip to content

Commit 1872220

Browse files
committed
Update ReflectionCache.php
1 parent cca9cf2 commit 1872220

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QueryReflection/ReflectionCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ private function readCachedRecords(bool $useReadLock): ?array
157157

158158
// the schemaHash is only available in replay-and-record mode.
159159
if (null === $this->schemaHash) {
160-
if (! is_string($cache['schemaHash'])) {
160+
if ($cache['schemaHash'] !== null && ! is_string($cache['schemaHash'])) {
161161
throw new ShouldNotHappenException();
162162
}
163163
$this->schemaHash = $cache['schemaHash'];

0 commit comments

Comments
 (0)