Skip to content

Commit 7653a6e

Browse files
committed
Fix type errors
1 parent df9c68f commit 7653a6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/QueryReflection/ReflectionCache.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ private function readCachedRecords(bool $useReadLock): ?array
147147
if (! \is_array($cache) ||
148148
! \array_key_exists('schemaVersion', $cache) ||
149149
! \array_key_exists('schemaHash', $cache) ||
150+
! is_string($cache['schemaHash']) ||
150151
self::SCHEMA_VERSION !== $cache['schemaVersion']) {
151152
return null;
152153
}
@@ -166,7 +167,7 @@ private function readCachedRecords(bool $useReadLock): ?array
166167
throw new ShouldNotHappenException();
167168
}
168169

169-
return $cache['records'];
170+
return $cache['records']; // @phpstan-ignore-line
170171
}
171172

172173
public function persist(): void

0 commit comments

Comments
 (0)