Skip to content

Commit 76ebfcf

Browse files
authored
Merge pull request #63 from TobiasGraml11/loosen_guzzle_requirement
Loosen Guzzle requirement
2 parents b6f0a82 + 16e479c commit 76ebfcf

File tree

3 files changed

+55
-59
lines changed

3 files changed

+55
-59
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"require": {
1515
"php": "^7.4 || ^8.0 || ^8.1",
1616
"ext-json": "*",
17-
"guzzlehttp/guzzle": "^7.5",
17+
"guzzlehttp/guzzle": "^7.0",
1818
"psr/http-client": "^1.0"
1919
},
2020
"require-dev": {

composer.lock

Lines changed: 53 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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)