From ce6d0fd13b54ac79a955b85d50860736a520d333 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Tue, 4 Sep 2018 21:44:34 +0200 Subject: [PATCH] tests: fixed array() return --- tests/Unit/Middleware/CallableHandlerTest.php | 2 +- tests/Unit/Middleware/RouteDispatcherTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Unit/Middleware/CallableHandlerTest.php b/tests/Unit/Middleware/CallableHandlerTest.php index 6e6dab58..29424480 100644 --- a/tests/Unit/Middleware/CallableHandlerTest.php +++ b/tests/Unit/Middleware/CallableHandlerTest.php @@ -136,6 +136,6 @@ class CallableHandlerTest extends TestCase $callable = $this->getMockBuilder(stdClass::class) ->setMethods(['__invoke']) ->getMock(); - return array($request, $response, $callable, $handler); + return [$request, $response, $callable, $handler]; } } diff --git a/tests/Unit/Middleware/RouteDispatcherTest.php b/tests/Unit/Middleware/RouteDispatcherTest.php index edb2f158..1e920f06 100644 --- a/tests/Unit/Middleware/RouteDispatcherTest.php +++ b/tests/Unit/Middleware/RouteDispatcherTest.php @@ -143,6 +143,6 @@ class RouteDispatcherTest extends TestCase ->method('getPath') ->willReturn('/foo%21bar'); - return array($dispatcher, $response, $request, $handler); + return [$dispatcher, $response, $request, $handler]; } }