Skip to content

Commit 2c0e112

Browse files
authored
Merge pull request #446 from qrazi/patch-2
Fixed #441: force type to string when overriding adapter url
2 parents 1963555 + a2dd797 commit 2c0e112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Providers/OEmbed/Youtube.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function create(Adapter $adapter)
2121
// The Adapter URL should be forced to starting URL as well
2222
// to prevent consumers of the packages having to deal
2323
// with a URL to a consent page (#441)
24-
$adapter->url = $response->getStartingUrl();
24+
$adapter->url = (string) $response->getStartingUrl();
2525
return new static($response, $response->getStartingUrl());
2626
}
2727

0 commit comments

Comments
 (0)