File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ protected function detectEndpoint(): UriInterface
2424 }
2525 }
2626 $ queryParameters = $ this ->getOembedQueryParameters ((string ) $ uri );
27- if (! empty ($ token )) $ queryParameters ['access_token ' ] = $ token ;
27+ if (is_string ($ token )) $ queryParameters ['access_token ' ] = $ token ;
2828
2929 return $ this ->extractor ->getCrawler ()
3030 ->createUri ($ this ->getEndpointByPath ($ uri ->getPath ()))
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ protected function detectEndpoint(): UriInterface
2020 }
2121
2222 $ queryParameters = $ this ->getOembedQueryParameters ((string ) $ uri );
23- if (! empty ($ token )) $ queryParameters ['access_token ' ] = $ token ;
23+ if (is_string ($ token )) $ queryParameters ['access_token ' ] = $ token ;
2424
2525 return $ this ->extractor ->getCrawler ()
2626 ->createUri (self ::ENDPOINT )
You can’t perform that action at this time.
0 commit comments