Skip to content

Commit d612ae1

Browse files
committed
Update config and fix tests for xkey glue
1 parent 03aaf66 commit d612ae1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

features/bootstrap/ProfilerContext.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,8 @@ public function theResourceShouldBePurgedFromTheCache(string $resourceName)
178178
$iri = preg_replace('/^xkey\: /', '', $xkeyHeader->getValue());
179179
$iris = explode(' ', $iri);
180180
array_push($purged, ...$iris);
181-
foreach ($iris as $purgedIri) {
182-
if ($purgedIri === $expectedIri) {
183-
return true;
184-
}
181+
if (in_array($expectedIri, $iris, true)) {
182+
return true;
185183
}
186184
}
187185
}

tests/Functional/app/config/packages/api_platform.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ api_platform:
1414
enabled: true
1515
varnish_urls: [ 'http://test' ]
1616
xkey:
17-
glue: ', '
17+
glue: ' '
1818
public: true

0 commit comments

Comments
 (0)