We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df9c68f commit 7653a6eCopy full SHA for 7653a6e
src/QueryReflection/ReflectionCache.php
@@ -147,6 +147,7 @@ private function readCachedRecords(bool $useReadLock): ?array
147
if (! \is_array($cache) ||
148
! \array_key_exists('schemaVersion', $cache) ||
149
! \array_key_exists('schemaHash', $cache) ||
150
+ ! is_string($cache['schemaHash']) ||
151
self::SCHEMA_VERSION !== $cache['schemaVersion']) {
152
return null;
153
}
@@ -166,7 +167,7 @@ private function readCachedRecords(bool $useReadLock): ?array
166
167
throw new ShouldNotHappenException();
168
169
- return $cache['records'];
170
+ return $cache['records']; // @phpstan-ignore-line
171
172
173
public function persist(): void
0 commit comments