Skip to content

Commit

Permalink
Replace abandoned zendframework/zend-diactoros.
Browse files Browse the repository at this point in the history
- Use laminas/laminas-diactoros instead.
- Fix unit test to use correct parameter type when calling stream
write.
  • Loading branch information
cxj committed Feb 12, 2020
1 parent bdc13f5 commit c17bf63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions tests/Fake/FakeMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit c17bf63

Please sign in to comment.