Skip to content

Commit 2a90072

Browse files
committed
Filter .well-known if api paths have prefix
1 parent bc423da commit 2a90072

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Serializer/Normalizer/RouteNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private function getResourceIrisFromArray(array $resource, array $iris = []): ar
7878
{
7979
$resourceId = $resource['@id'] ?? null;
8080
if (
81-
str_starts_with($resourceId, '/.well-known/')
81+
str_contains($resourceId, '/.well-known/')
8282
|| '/_/resource_metadatas' === $resourceId
8383
|| \in_array($resourceId, $iris, true)
8484
) {
@@ -107,7 +107,7 @@ private function getResourceIrisFromArray(array $resource, array $iris = []): ar
107107
}
108108

109109
return array_filter($iris, function($iri) {
110-
return !str_starts_with($iri, '/.well-known/');
110+
return !str_contains($iri, '/.well-known/');
111111
});
112112
}
113113

0 commit comments

Comments
 (0)