Skip to content

Commit f4314f6

Browse files
author
Dominik Jansen
committed
fix(oembed): uri withQuery does only accept strings
1 parent dd48be9 commit f4314f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Adapters/Facebook/OEmbed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected function detectEndpoint(): ?UriInterface
2626

2727
return $this->extractor->getCrawler()
2828
->createUri($this->getEndpointByPath($uri->getPath()))
29-
->withQuery($queryParameters);
29+
->withQuery(http_build_query($queryParameters));
3030
}
3131

3232
private function getEndpointByPath(string $path): string

src/Adapters/Instagram/OEmbed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ protected function detectEndpoint(): ?UriInterface
2424

2525
return $this->extractor->getCrawler()
2626
->createUri(self::ENDPOINT)
27-
->withQuery($queryParameters);
27+
->withQuery(http_build_query($queryParameters));
2828
}
2929
}

0 commit comments

Comments
 (0)