diff --git a/tests/AppTest.php b/tests/AppTest.php index cd18bfd16..80c6e9f66 100644 --- a/tests/AppTest.php +++ b/tests/AppTest.php @@ -1423,7 +1423,7 @@ public function testInvokeWithCallableRegisteredInContainer(): void $responseFactoryProphecy = $this->prophesize(ResponseFactoryInterface::class); $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal()); - $handler = new Class + $handler = new class { public function foo(ServerRequestInterface $request, ResponseInterface $response) { @@ -1465,7 +1465,7 @@ public function testInvokeWithNonExistentMethodOnCallableRegisteredInContainer() $responseFactoryProphecy = $this->prophesize(ResponseFactoryInterface::class); $responseFactoryProphecy->createResponse()->willReturn($responseProphecy->reveal()); - $handler = new Class + $handler = new class { };