Skip to content

Commit

Permalink
Fix static checks
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed Oct 8, 2024
1 parent 6dd1bbf commit 49b5900
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/DataSyncInfrastructure/Controller/FeedController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ public function __construct(
) {
}

/**
* @psalm-suppress MixedAssignment
* @psalm-suppress MixedMethodCall
* @psalm-suppress MixedArgument
*/
public function __invoke(
string $channelCode,
string $localeCode,
Expand All @@ -62,7 +67,7 @@ public function __invoke(
$headerAccessTokenExtractor = new HeaderAccessTokenExtractor(self::AUTHORIZATION_HEADER);
$authToken = $headerAccessTokenExtractor->extractAccessToken($request);
} else {
$authToken = str_replace('Bearer ', '', $request->headers->get(self::AUTHORIZATION_HEADER));
$authToken = str_replace('Bearer ', '', (string) $request->headers->get(self::AUTHORIZATION_HEADER));
}
if ($authToken === null || !$this->requestValidator->isValid($channel, $localeCode, $authToken)) {
throw $this->createAccessDeniedException();
Expand Down

0 comments on commit 49b5900

Please sign in to comment.