Skip to content

Commit 0cdd704

Browse files
committed
phpstan errors
1 parent 7874640 commit 0cdd704

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Adapters/Facebook/OEmbed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()))

src/Adapters/Instagram/OEmbed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)