From ee8841fe66d6d30f95ce31311407f97d403e14db Mon Sep 17 00:00:00 2001 From: Pedro Cambra Date: Mon, 31 Oct 2016 09:57:44 +0900 Subject: [PATCH 01/11] Added Zend diactoros library dependency to the examples --- examples/composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/composer.json b/examples/composer.json index 3c6e550b..59d6d557 100644 --- a/examples/composer.json +++ b/examples/composer.json @@ -6,7 +6,8 @@ "league/event": "^2.1", "lcobucci/jwt": "^3.1", "paragonie/random_compat": "^1.1", - "psr/http-message": "^1.0" + "psr/http-message": "^1.0", + "zendframework/zend-diactoros": "^1.0" }, "autoload": { "psr-4": { From 170ce2fd2d238a6c0cba46dbb4d27f28089f35b8 Mon Sep 17 00:00:00 2001 From: Diogo Oliveira de Melo Date: Fri, 30 Jun 2017 15:42:23 -0300 Subject: [PATCH 02/11] Replaces array_key_exists by isset, which is faster, on ImplicitGrant. --- src/Grant/ImplicitGrant.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Grant/ImplicitGrant.php b/src/Grant/ImplicitGrant.php index 62a48147..2ec9aed7 100644 --- a/src/Grant/ImplicitGrant.php +++ b/src/Grant/ImplicitGrant.php @@ -95,8 +95,8 @@ class ImplicitGrant extends AbstractAuthorizeGrant public function canRespondToAuthorizationRequest(ServerRequestInterface $request) { return ( - array_key_exists('response_type', $request->getQueryParams()) - && $request->getQueryParams()['response_type'] === 'token' + isset($request->getQueryParams()['response_type']) + && 'token' === $request->getQueryParams()['response_type'] && isset($request->getQueryParams()['client_id']) ); } From 203be5ca20de4a0a3520513b7507d7e2dc5fc0f8 Mon Sep 17 00:00:00 2001 From: Diogo Oliveira de Melo Date: Fri, 20 Oct 2017 09:23:36 -0200 Subject: [PATCH 03/11] Revert comparison order, as suggested by @Sephster --- src/Grant/ImplicitGrant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Grant/ImplicitGrant.php b/src/Grant/ImplicitGrant.php index 2ec9aed7..693880b4 100644 --- a/src/Grant/ImplicitGrant.php +++ b/src/Grant/ImplicitGrant.php @@ -96,7 +96,7 @@ class ImplicitGrant extends AbstractAuthorizeGrant { return ( isset($request->getQueryParams()['response_type']) - && 'token' === $request->getQueryParams()['response_type'] + && $request->getQueryParams()['response_type'] === 'token' && isset($request->getQueryParams()['client_id']) ); } From 23c7138d48f0d760d3faeb2ef4eb2c9186ee293d Mon Sep 17 00:00:00 2001 From: Brian Retterer Date: Mon, 23 Oct 2017 15:26:10 +0000 Subject: [PATCH 04/11] Apply fixes from StyleCI --- src/AuthorizationServer.php | 1 + src/CryptTrait.php | 4 ++++ src/ResponseTypes/AbstractResponseType.php | 1 - tests/AuthorizationServerTest.php | 1 - tests/CryptTraitTest.php | 1 - tests/Grant/AbstractGrantTest.php | 1 - tests/Grant/AuthCodeGrantTest.php | 1 - tests/Stubs/CryptTraitStub.php | 1 - 8 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/AuthorizationServer.php b/src/AuthorizationServer.php index 46a9b27a..35e745d3 100644 --- a/src/AuthorizationServer.php +++ b/src/AuthorizationServer.php @@ -3,6 +3,7 @@ * @author Alex Bilbie * @copyright Copyright (c) Alex Bilbie * @license http://mit-license.org/ + * * @link https://github.com/thephpleague/oauth2-server */ diff --git a/src/CryptTrait.php b/src/CryptTrait.php index 805969b0..125a757e 100644 --- a/src/CryptTrait.php +++ b/src/CryptTrait.php @@ -1,9 +1,11 @@ * @copyright Copyright (c) Alex Bilbie * @license http://mit-license.org/ + * * @link https://github.com/thephpleague/oauth2-server */ @@ -24,6 +26,7 @@ trait CryptTrait * @param string $unencryptedData * * @throws \LogicException + * * @return string */ protected function encrypt($unencryptedData) @@ -41,6 +44,7 @@ trait CryptTrait * @param string $encryptedData * * @throws \LogicException + * * @return string */ protected function decrypt($encryptedData) diff --git a/src/ResponseTypes/AbstractResponseType.php b/src/ResponseTypes/AbstractResponseType.php index 0c256f17..d013bab0 100644 --- a/src/ResponseTypes/AbstractResponseType.php +++ b/src/ResponseTypes/AbstractResponseType.php @@ -60,5 +60,4 @@ abstract class AbstractResponseType implements ResponseTypeInterface { $this->privateKey = $key; } - } diff --git a/tests/AuthorizationServerTest.php b/tests/AuthorizationServerTest.php index 91ca9e4b..4571c5e1 100644 --- a/tests/AuthorizationServerTest.php +++ b/tests/AuthorizationServerTest.php @@ -3,7 +3,6 @@ namespace LeagueTests; use League\OAuth2\Server\AuthorizationServer; -use League\OAuth2\Server\CryptKey; use League\OAuth2\Server\Exception\OAuthServerException; use League\OAuth2\Server\Grant\AuthCodeGrant; use League\OAuth2\Server\Grant\ClientCredentialsGrant; diff --git a/tests/CryptTraitTest.php b/tests/CryptTraitTest.php index 8c7d2642..3d60ec9d 100644 --- a/tests/CryptTraitTest.php +++ b/tests/CryptTraitTest.php @@ -2,7 +2,6 @@ namespace LeagueTests\Utils; -use League\OAuth2\Server\CryptKey; use LeagueTests\Stubs\CryptTraitStub; class CryptTraitTest extends \PHPUnit_Framework_TestCase diff --git a/tests/Grant/AbstractGrantTest.php b/tests/Grant/AbstractGrantTest.php index 542c78dc..4cd490e3 100644 --- a/tests/Grant/AbstractGrantTest.php +++ b/tests/Grant/AbstractGrantTest.php @@ -3,7 +3,6 @@ namespace LeagueTests\Grant; use League\Event\Emitter; -use League\OAuth2\Server\CryptKey; use League\OAuth2\Server\Entities\AccessTokenEntityInterface; use League\OAuth2\Server\Entities\AuthCodeEntityInterface; use League\OAuth2\Server\Entities\RefreshTokenEntityInterface; diff --git a/tests/Grant/AuthCodeGrantTest.php b/tests/Grant/AuthCodeGrantTest.php index 3bccba0a..d63aec29 100644 --- a/tests/Grant/AuthCodeGrantTest.php +++ b/tests/Grant/AuthCodeGrantTest.php @@ -2,7 +2,6 @@ namespace LeagueTests\Grant; -use League\OAuth2\Server\CryptKey; use League\OAuth2\Server\Entities\AccessTokenEntityInterface; use League\OAuth2\Server\Entities\RefreshTokenEntityInterface; use League\OAuth2\Server\Exception\OAuthServerException; diff --git a/tests/Stubs/CryptTraitStub.php b/tests/Stubs/CryptTraitStub.php index a481a849..3fe02199 100644 --- a/tests/Stubs/CryptTraitStub.php +++ b/tests/Stubs/CryptTraitStub.php @@ -2,7 +2,6 @@ namespace LeagueTests\Stubs; -use League\OAuth2\Server\CryptKey; use League\OAuth2\Server\CryptTrait; class CryptTraitStub From 63c2c21ee66a37fe4f42f35676294a99983d1419 Mon Sep 17 00:00:00 2001 From: Brian Retterer Date: Mon, 23 Oct 2017 11:26:21 -0400 Subject: [PATCH 05/11] Update readme file to bring in Andy, Brian, and Simon --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0cf7b95b..4f8b0906 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,8 @@ This package is released under the MIT License. See the bundled [LICENSE](https: ## Credits -This code is principally developed and maintained by [Alex Bilbie](https://twitter.com/alexbilbie). +This code is principally developed and maintained by [Andy Millington](https://twitter.com/Sephster), [Brian +Retterer](https://twitter.com/bretterer), and [Simon Hamp](https://twitter.com/simonhamp). Special thanks to [all of these awesome contributors](https://github.com/thephpleague/oauth2-server/contributors). From 825017f27ecd20f101bcf864769222e24a92f886 Mon Sep 17 00:00:00 2001 From: Luca Santarella Date: Wed, 25 Oct 2017 18:30:17 -0400 Subject: [PATCH 06/11] Ability to specify query delimiter, such as `?` instead of the hard-coded `#` --- src/Grant/ImplicitGrant.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/Grant/ImplicitGrant.php b/src/Grant/ImplicitGrant.php index 2f7ea51f..4ed2de63 100644 --- a/src/Grant/ImplicitGrant.php +++ b/src/Grant/ImplicitGrant.php @@ -27,11 +27,18 @@ class ImplicitGrant extends AbstractAuthorizeGrant private $accessTokenTTL; /** - * @param \DateInterval $accessTokenTTL + * @var string */ - public function __construct(\DateInterval $accessTokenTTL) + private $queryDelimiter; + + /** + * @param \DateInterval $accessTokenTTL + * @param string $queryDelimiter + */ + public function __construct(\DateInterval $accessTokenTTL, $queryDelimiter = '#') { $this->accessTokenTTL = $accessTokenTTL; + $this->queryDelimiter = $queryDelimiter; } /** @@ -204,7 +211,7 @@ class ImplicitGrant extends AbstractAuthorizeGrant 'expires_in' => $accessToken->getExpiryDateTime()->getTimestamp() - (new \DateTime())->getTimestamp(), 'state' => $authorizationRequest->getState(), ], - '#' + $this->queryDelimiter ) ); From 606f69e6cd8f1746f2ef5c9d539b303d569d27ef Mon Sep 17 00:00:00 2001 From: Luca Santarella Date: Wed, 25 Oct 2017 18:33:26 -0400 Subject: [PATCH 07/11] Fixed indentation in comment to match code style --- src/Grant/ImplicitGrant.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Grant/ImplicitGrant.php b/src/Grant/ImplicitGrant.php index 4ed2de63..ed2f4b5d 100644 --- a/src/Grant/ImplicitGrant.php +++ b/src/Grant/ImplicitGrant.php @@ -32,9 +32,9 @@ class ImplicitGrant extends AbstractAuthorizeGrant private $queryDelimiter; /** - * @param \DateInterval $accessTokenTTL - * @param string $queryDelimiter - */ + * @param \DateInterval $accessTokenTTL + * @param string $queryDelimiter + */ public function __construct(\DateInterval $accessTokenTTL, $queryDelimiter = '#') { $this->accessTokenTTL = $accessTokenTTL; From a4fc05c31e8463ca984743749de2366131b9ae5b Mon Sep 17 00:00:00 2001 From: Luca Santarella Date: Wed, 25 Oct 2017 18:33:26 -0400 Subject: [PATCH 08/11] Fixed indentation in comment to match code style --- src/Grant/ImplicitGrant.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Grant/ImplicitGrant.php b/src/Grant/ImplicitGrant.php index 4ed2de63..4a16314f 100644 --- a/src/Grant/ImplicitGrant.php +++ b/src/Grant/ImplicitGrant.php @@ -31,10 +31,10 @@ class ImplicitGrant extends AbstractAuthorizeGrant */ private $queryDelimiter; - /** - * @param \DateInterval $accessTokenTTL - * @param string $queryDelimiter - */ + /** + * @param \DateInterval $accessTokenTTL + * @param string $queryDelimiter + */ public function __construct(\DateInterval $accessTokenTTL, $queryDelimiter = '#') { $this->accessTokenTTL = $accessTokenTTL; From 4d77aee4a9eef4c7523a24cf7512463f5cea23f7 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sat, 28 Oct 2017 18:29:55 +0700 Subject: [PATCH 09/11] =?UTF-8?q?Added=20a=20reference=20to=20myself=C2=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 4f8b0906..93e3341e 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,8 @@ This package is released under the MIT License. See the bundled [LICENSE](https: This code is principally developed and maintained by [Andy Millington](https://twitter.com/Sephster), [Brian Retterer](https://twitter.com/bretterer), and [Simon Hamp](https://twitter.com/simonhamp). +Between 2012 and 2017 this library was developed and maintained by [Alex Bilbie](https://alexbilbie.com/). + Special thanks to [all of these awesome contributors](https://github.com/thephpleague/oauth2-server/contributors). Additional thanks go to the [Mozilla Secure Open Source Fund](https://wiki.mozilla.org/MOSS/Secure_Open_Source) for funding a security audit of this library. From 04f3d39b459a6558d7027c6faf51bf7cc12d19cc Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Wed, 8 Nov 2017 16:07:07 -0200 Subject: [PATCH 10/11] Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase --- tests/AuthorizationServerTest.php | 3 ++- tests/CryptKeyTest.php | 3 ++- tests/CryptTraitTest.php | 3 ++- tests/Grant/AbstractGrantTest.php | 3 ++- tests/Grant/AuthCodeGrantTest.php | 3 ++- tests/Grant/ClientCredentialsGrantTest.php | 3 ++- tests/Grant/ImplicitGrantTest.php | 3 ++- tests/Grant/PasswordGrantTest.php | 3 ++- tests/Grant/RefreshTokenGrantTest.php | 3 ++- tests/Middleware/AuthorizationServerMiddlewareTest.php | 3 ++- tests/Middleware/ResourceServerMiddlewareTest.php | 3 ++- tests/ResourceServerTest.php | 3 ++- tests/ResponseTypes/BearerResponseTypeTest.php | 3 ++- 13 files changed, 26 insertions(+), 13 deletions(-) diff --git a/tests/AuthorizationServerTest.php b/tests/AuthorizationServerTest.php index 4571c5e1..6fc59715 100644 --- a/tests/AuthorizationServerTest.php +++ b/tests/AuthorizationServerTest.php @@ -19,11 +19,12 @@ use LeagueTests\Stubs\ClientEntity; use LeagueTests\Stubs\StubResponseType; use LeagueTests\Stubs\UserEntity; use Psr\Http\Message\ResponseInterface; +use PHPUnit\Framework\TestCase; use Zend\Diactoros\Response; use Zend\Diactoros\ServerRequest; use Zend\Diactoros\ServerRequestFactory; -class AuthorizationServerTest extends \PHPUnit_Framework_TestCase +class AuthorizationServerTest extends TestCase { public function setUp() { diff --git a/tests/CryptKeyTest.php b/tests/CryptKeyTest.php index c7f7f4a0..f4fd0659 100644 --- a/tests/CryptKeyTest.php +++ b/tests/CryptKeyTest.php @@ -3,8 +3,9 @@ namespace LeagueTests\Utils; use League\OAuth2\Server\CryptKey; +use PHPUnit\Framework\TestCase; -class CryptKeyTest extends \PHPUnit_Framework_TestCase +class CryptKeyTest extends TestCase { /** * @expectedException \LogicException diff --git a/tests/CryptTraitTest.php b/tests/CryptTraitTest.php index 3d60ec9d..26427e59 100644 --- a/tests/CryptTraitTest.php +++ b/tests/CryptTraitTest.php @@ -3,8 +3,9 @@ namespace LeagueTests\Utils; use LeagueTests\Stubs\CryptTraitStub; +use PHPUnit\Framework\TestCase; -class CryptTraitTest extends \PHPUnit_Framework_TestCase +class CryptTraitTest extends TestCase { /** * @var \LeagueTests\Stubs\CryptTraitStub diff --git a/tests/Grant/AbstractGrantTest.php b/tests/Grant/AbstractGrantTest.php index 4cd490e3..d0d9b3c8 100644 --- a/tests/Grant/AbstractGrantTest.php +++ b/tests/Grant/AbstractGrantTest.php @@ -18,9 +18,10 @@ use LeagueTests\Stubs\AuthCodeEntity; use LeagueTests\Stubs\ClientEntity; use LeagueTests\Stubs\RefreshTokenEntity; use LeagueTests\Stubs\ScopeEntity; +use PHPUnit\Framework\TestCase; use Zend\Diactoros\ServerRequest; -class AbstractGrantTest extends \PHPUnit_Framework_TestCase +class AbstractGrantTest extends TestCase { public function testGetSet() { diff --git a/tests/Grant/AuthCodeGrantTest.php b/tests/Grant/AuthCodeGrantTest.php index d63aec29..213b4a03 100644 --- a/tests/Grant/AuthCodeGrantTest.php +++ b/tests/Grant/AuthCodeGrantTest.php @@ -22,9 +22,10 @@ use LeagueTests\Stubs\RefreshTokenEntity; use LeagueTests\Stubs\ScopeEntity; use LeagueTests\Stubs\StubResponseType; use LeagueTests\Stubs\UserEntity; +use PHPUnit\Framework\TestCase; use Zend\Diactoros\ServerRequest; -class AuthCodeGrantTest extends \PHPUnit_Framework_TestCase +class AuthCodeGrantTest extends TestCase { /** * @var CryptTraitStub diff --git a/tests/Grant/ClientCredentialsGrantTest.php b/tests/Grant/ClientCredentialsGrantTest.php index a1665831..96d8d578 100644 --- a/tests/Grant/ClientCredentialsGrantTest.php +++ b/tests/Grant/ClientCredentialsGrantTest.php @@ -10,9 +10,10 @@ use League\OAuth2\Server\Repositories\ScopeRepositoryInterface; use LeagueTests\Stubs\AccessTokenEntity; use LeagueTests\Stubs\ClientEntity; use LeagueTests\Stubs\StubResponseType; +use PHPUnit\Framework\TestCase; use Zend\Diactoros\ServerRequest; -class ClientCredentialsGrantTest extends \PHPUnit_Framework_TestCase +class ClientCredentialsGrantTest extends TestCase { public function testGetIdentifier() { diff --git a/tests/Grant/ImplicitGrantTest.php b/tests/Grant/ImplicitGrantTest.php index 3bfe4b84..f962024a 100644 --- a/tests/Grant/ImplicitGrantTest.php +++ b/tests/Grant/ImplicitGrantTest.php @@ -18,9 +18,10 @@ use LeagueTests\Stubs\CryptTraitStub; use LeagueTests\Stubs\ScopeEntity; use LeagueTests\Stubs\StubResponseType; use LeagueTests\Stubs\UserEntity; +use PHPUnit\Framework\TestCase; use Zend\Diactoros\ServerRequest; -class ImplicitGrantTest extends \PHPUnit_Framework_TestCase +class ImplicitGrantTest extends TestCase { /** * CryptTrait stub diff --git a/tests/Grant/PasswordGrantTest.php b/tests/Grant/PasswordGrantTest.php index b380bfb2..0c1be581 100644 --- a/tests/Grant/PasswordGrantTest.php +++ b/tests/Grant/PasswordGrantTest.php @@ -15,9 +15,10 @@ use LeagueTests\Stubs\ClientEntity; use LeagueTests\Stubs\RefreshTokenEntity; use LeagueTests\Stubs\StubResponseType; use LeagueTests\Stubs\UserEntity; +use PHPUnit\Framework\TestCase; use Zend\Diactoros\ServerRequest; -class PasswordGrantTest extends \PHPUnit_Framework_TestCase +class PasswordGrantTest extends TestCase { public function testGetIdentifier() { diff --git a/tests/Grant/RefreshTokenGrantTest.php b/tests/Grant/RefreshTokenGrantTest.php index 47d7ad17..f7f803f7 100644 --- a/tests/Grant/RefreshTokenGrantTest.php +++ b/tests/Grant/RefreshTokenGrantTest.php @@ -16,9 +16,10 @@ use LeagueTests\Stubs\CryptTraitStub; use LeagueTests\Stubs\RefreshTokenEntity; use LeagueTests\Stubs\ScopeEntity; use LeagueTests\Stubs\StubResponseType; +use PHPUnit\Framework\TestCase; use Zend\Diactoros\ServerRequest; -class RefreshTokenGrantTest extends \PHPUnit_Framework_TestCase +class RefreshTokenGrantTest extends TestCase { /** * @var CryptTraitStub diff --git a/tests/Middleware/AuthorizationServerMiddlewareTest.php b/tests/Middleware/AuthorizationServerMiddlewareTest.php index 74dffbf7..bc860770 100644 --- a/tests/Middleware/AuthorizationServerMiddlewareTest.php +++ b/tests/Middleware/AuthorizationServerMiddlewareTest.php @@ -12,10 +12,11 @@ use League\OAuth2\Server\Repositories\ScopeRepositoryInterface; use LeagueTests\Stubs\AccessTokenEntity; use LeagueTests\Stubs\ClientEntity; use LeagueTests\Stubs\StubResponseType; +use PHPUnit\Framework\TestCase; use Zend\Diactoros\Response; use Zend\Diactoros\ServerRequestFactory; -class AuthorizationServerMiddlewareTest extends \PHPUnit_Framework_TestCase +class AuthorizationServerMiddlewareTest extends TestCase { public function testValidResponse() { diff --git a/tests/Middleware/ResourceServerMiddlewareTest.php b/tests/Middleware/ResourceServerMiddlewareTest.php index 549c8003..2269c45a 100644 --- a/tests/Middleware/ResourceServerMiddlewareTest.php +++ b/tests/Middleware/ResourceServerMiddlewareTest.php @@ -8,10 +8,11 @@ use League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface; use League\OAuth2\Server\ResourceServer; use LeagueTests\Stubs\AccessTokenEntity; use LeagueTests\Stubs\ClientEntity; +use PHPUnit\Framework\TestCase; use Zend\Diactoros\Response; use Zend\Diactoros\ServerRequest; -class ResourceServerMiddlewareTest extends \PHPUnit_Framework_TestCase +class ResourceServerMiddlewareTest extends TestCase { public function testValidResponse() { diff --git a/tests/ResourceServerTest.php b/tests/ResourceServerTest.php index 8a3353cc..3120cad2 100644 --- a/tests/ResourceServerTest.php +++ b/tests/ResourceServerTest.php @@ -6,9 +6,10 @@ namespace LeagueTests; use League\OAuth2\Server\Exception\OAuthServerException; use League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface; use League\OAuth2\Server\ResourceServer; +use PHPUnit\Framework\TestCase; use Zend\Diactoros\ServerRequestFactory; -class ResourceServerTest extends \PHPUnit_Framework_TestCase +class ResourceServerTest extends TestCase { public function testValidateAuthenticatedRequest() { diff --git a/tests/ResponseTypes/BearerResponseTypeTest.php b/tests/ResponseTypes/BearerResponseTypeTest.php index 7f710d92..daad734e 100644 --- a/tests/ResponseTypes/BearerResponseTypeTest.php +++ b/tests/ResponseTypes/BearerResponseTypeTest.php @@ -11,11 +11,12 @@ use LeagueTests\Stubs\AccessTokenEntity; use LeagueTests\Stubs\ClientEntity; use LeagueTests\Stubs\RefreshTokenEntity; use LeagueTests\Stubs\ScopeEntity; +use PHPUnit\Framework\TestCase; use Psr\Http\Message\ResponseInterface; use Zend\Diactoros\Response; use Zend\Diactoros\ServerRequest; -class BearerResponseTypeTest extends \PHPUnit_Framework_TestCase +class BearerResponseTypeTest extends TestCase { public function testGenerateHttpResponse() { From 3871aee48caf1519e5f0b0417ef98f1f0b935e5a Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Wed, 8 Nov 2017 16:20:31 -0200 Subject: [PATCH 11/11] Bump PHPUnit version for compatibility --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index d6740aa4..d8d11125 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "defuse/php-encryption": "^2.1" }, "require-dev": { - "phpunit/phpunit": "^4.8 || ^5.0", + "phpunit/phpunit": "^4.8.38 || ^5.7.21", "zendframework/zend-diactoros": "^1.0" }, "repositories": [