From d1a8e7813a5cd695f13339ab0c9cc19daf3f1d94 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 2 Jun 2022 08:00:45 +0000 Subject: Revert "composer updates" This reverts commit 47448b11cdd5b077b6a8412b41db2862c6d2d4b3. --- .../oauth2-server-php/src/OAuth2/TokenType/Bearer.php | 2 +- .../oauth2-server-php/test/OAuth2/TokenType/BearerTest.php | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) (limited to 'vendor/bshaffer') diff --git a/vendor/bshaffer/oauth2-server-php/src/OAuth2/TokenType/Bearer.php b/vendor/bshaffer/oauth2-server-php/src/OAuth2/TokenType/Bearer.php index aa1094b1e..8ac8596ac 100644 --- a/vendor/bshaffer/oauth2-server-php/src/OAuth2/TokenType/Bearer.php +++ b/vendor/bshaffer/oauth2-server-php/src/OAuth2/TokenType/Bearer.php @@ -109,7 +109,7 @@ class Bearer implements TokenTypeInterface } $contentType = $request->server('CONTENT_TYPE'); - if (false !== $pos = strpos((string) $contentType, ';')) { + if (false !== $pos = strpos($contentType, ';')) { $contentType = substr($contentType, 0, $pos); } diff --git a/vendor/bshaffer/oauth2-server-php/test/OAuth2/TokenType/BearerTest.php b/vendor/bshaffer/oauth2-server-php/test/OAuth2/TokenType/BearerTest.php index 021fc7f5a..71cca3bd9 100644 --- a/vendor/bshaffer/oauth2-server-php/test/OAuth2/TokenType/BearerTest.php +++ b/vendor/bshaffer/oauth2-server-php/test/OAuth2/TokenType/BearerTest.php @@ -35,17 +35,6 @@ class BearerTest extends TestCase $this->assertEquals($response->getParameter('error_description'), 'The content type for POST requests must be "application/x-www-form-urlencoded"'); } - public function testMissingContentTypeExpectsToBeCorrectContent() - { - $bearer = new Bearer(); - $request = TestRequest::createPost(array( - 'access_token' => 'ThisIsMyAccessToken' - )); - - $param = $bearer->getAccessTokenParameter($request, $response = new Response()); - $this->assertEquals($param, 'ThisIsMyAccessToken'); - } - public function testValidRequestUsingAuthorizationHeader() { $bearer = new Bearer(); -- cgit v1.2.3