src/TokenType/Bearer.php
public function determineAccessTokenInHeader(RequestHandler $requestHandler, $authHeader = 'Authorization')
    {
        $header = $requestHandler->getHeader($authHeader);
        $accessToken = trim(preg_replace('/^(?:\s+)?Bearer\s/', '', $header));

        return ($accessToken === 'Bearer') ? '' : $accessToken;
    }
public function determineAccessTokenInHeader(RequestHandler $requestHandler, $authHeader = 'Authorization')
    {
        $header = $requestHandler->getHeader($authHeader);
        $accessToken = trim(preg_replace('/^(?:\s+)?Bearer\s/', '', $header));

        return ($accessToken === 'Bearer') ? '' : $accessToken;
    }
{@inheritdoc}