Skip to content

Commit d67141b

Browse files
committed
prevent use of cache files without a proper schema-hash
1 parent 69776d8 commit d67141b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/QueryReflection/ReflectionCache.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ private function readCachedRecords(bool $useReadLock): ?array
154154
return null;
155155
}
156156

157-
if (null === $this->schemaHash) {
157+
if ($cache['schemaHash'] === null ) {
158+
return null;
159+
} elseif (null === $this->schemaHash) {
158160
$this->schemaHash = $cache['schemaHash'];
159161
} elseif ($this->schemaHash !== $cache['schemaHash']) {
160162
return null;

0 commit comments

Comments
 (0)