Skip to content

Commit eef8c86

Browse files
authored
Merge pull request #43 from GrahamCampbell/patch-1
The etag from data can never be a string
2 parents 25a29ba + 46def0b commit eef8c86

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/CachePlugin.php

-4
Original file line numberDiff line numberDiff line change
@@ -435,10 +435,6 @@ private function getETag(CacheItemInterface $cacheItem)
435435
return;
436436
}
437437

438-
if (!is_array($data['etag'])) {
439-
return $data['etag'];
440-
}
441-
442438
foreach ($data['etag'] as $etag) {
443439
if (!empty($etag)) {
444440
return $etag;

0 commit comments

Comments
 (0)