Skip to content

Commit 16e479c

Browse files
author
Tobias Graml
committed
Fix PhpStan
1 parent bb830e3 commit 16e479c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Hydrate/EntityHydrator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private function hydrateEntity(string $entityName, array $entityRaw, array $data
121121
$relationships = $entityRaw['relationships'] ?? [];
122122

123123
// reserve cache before relationships hydration. This prevents circular references to fail
124-
if($this->useCache && isset($cacheKey)) {
124+
if($this->useCache) {
125125
$this->cache[$cacheKey] = $entity;
126126
}
127127

0 commit comments

Comments
 (0)