Skip to content

Commit

Permalink
Merge pull request #3221 from mehdihasanpour/cleanup
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
l0gicgate authored Jul 22, 2022
2 parents f640f63 + 880e8c7 commit a4967e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/AppTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1763,7 +1763,7 @@ public function testHandleReturnsEmptyResponseBodyWithHeadRequestMethod(): void
$responseProphecy->getBody()->willReturn($streamProphecy->reveal());
$responseProphecy
->withBody(Argument::type(StreamInterface::class))
->will(function ($args) use ($streamProphecy) {
->will(function ($args) {
$this->getBody()->willReturn($args[0]);
return $this;
});
Expand Down Expand Up @@ -1869,7 +1869,7 @@ public function testCanBeReExecutedRecursivelyDuringDispatch(): void
$middlewareProphecy2->process(
Argument::type(ServerRequestInterface::class),
Argument::type(RequestHandlerInterface::class)
)->will(function ($args) use ($app) {
)->will(function ($args) {
/** @var ServerRequestInterface $request */
$request = $args[0];

Expand Down
2 changes: 1 addition & 1 deletion tests/Mocks/MockStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,6 @@ public function getMetadata($key = null)

$meta = stream_get_meta_data($this->stream);

return isset($meta[$key]) ? $meta[$key] : null;
return $meta[$key] ?? null;
}
}
2 changes: 1 addition & 1 deletion tests/Routing/RouteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class RouteTest extends TestCase
*/
public function createRoute($methods = 'GET', string $pattern = '/', $callable = null): Route
{
$callable = $callable ?? function (ServerRequestInterface $request, ResponseInterface $response) {
$callable ??= function (ServerRequestInterface $request, ResponseInterface $response) {
return $response;
};

Expand Down

0 comments on commit a4967e3

Please sign in to comment.