Skip to content

Commit

Permalink
Merge pull request #446 from qrazi/patch-2
Browse files Browse the repository at this point in the history
Fixed #441: force type to string when overriding adapter url
  • Loading branch information
oscarotero authored May 30, 2021
2 parents 1963555 + a2dd797 commit 2c0e112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Providers/OEmbed/Youtube.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static function create(Adapter $adapter)
// The Adapter URL should be forced to starting URL as well
// to prevent consumers of the packages having to deal
// with a URL to a consent page (#441)
$adapter->url = $response->getStartingUrl();
$adapter->url = (string) $response->getStartingUrl();
return new static($response, $response->getStartingUrl());
}

Expand Down

0 comments on commit 2c0e112

Please sign in to comment.