From c17bf6386ff9a1dc8585be082589fb6af3f2279b Mon Sep 17 00:00:00 2001 From: Chris Johnson Date: Wed, 12 Feb 2020 02:26:24 -0600 Subject: [PATCH] Replace abandoned zendframework/zend-diactoros. - Use laminas/laminas-diactoros instead. - Fix unit test to use correct parameter type when calling stream write. --- composer.json | 4 ++-- tests/Fake/FakeMiddleware.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 51debc9..1e9414c 100644 --- a/composer.json +++ b/composer.json @@ -14,8 +14,8 @@ "arbiter/arbiter": "~1.0" }, "require-dev": { - "phpunit/phpunit": "^7", - "zendframework/zend-diactoros": "~1.0" + "phpunit/phpunit": "^7.1", + "laminas/laminas-diactoros": "~2.2" }, "autoload": { "psr-4": { diff --git a/tests/Fake/FakeMiddleware.php b/tests/Fake/FakeMiddleware.php index 8bceaf3..c8a030d 100644 --- a/tests/Fake/FakeMiddleware.php +++ b/tests/Fake/FakeMiddleware.php @@ -7,9 +7,9 @@ class FakeMiddleware public function __invoke($request, $response, $next) { - $response->getBody()->write(++ static::$count); + $response->getBody()->write((string) ++ static::$count); $response = $next($request, $response); - $response->getBody()->write(++ static::$count); + $response->getBody()->write((string) ++ static::$count); return $response; } }