File tree 4 files changed +4
-11
lines changed
4 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,7 @@ public function __construct(
45
45
if (is_callable ($ responseFactory )) {
46
46
// Ensures type safety of the composed factory
47
47
$ responseFactory = new CallableResponseFactoryDecorator (
48
- static function () use ($ responseFactory ): ResponseInterface {
49
- return $ responseFactory ();
50
- }
48
+ static fn (): ResponseInterface => $ responseFactory ()
51
49
);
52
50
}
53
51
Original file line number Diff line number Diff line change @@ -31,9 +31,7 @@ protected function setUp(): void
31
31
{
32
32
$ this ->userRegister = $ this ->createMock (UserRepositoryInterface::class);
33
33
$ this ->responsePrototype = $ this ->createMock (ResponseInterface::class);
34
- $ this ->responseFactory = function (): ResponseInterface {
35
- return $ this ->responsePrototype ;
36
- };
34
+ $ this ->responseFactory = fn (): ResponseInterface => $ this ->responsePrototype ;
37
35
}
38
36
39
37
public function testInvokeWithEmptyContainer (): void
Original file line number Diff line number Diff line change @@ -38,9 +38,7 @@ protected function setUp(): void
38
38
$ this ->userRepository = $ this ->createMock (UserRepositoryInterface::class);
39
39
$ this ->authenticatedUser = $ this ->createMock (UserInterface::class);
40
40
$ this ->responsePrototype = $ this ->createMock (ResponseInterface::class);
41
- $ this ->responseFactory = function (): ResponseInterface {
42
- return $ this ->responsePrototype ;
43
- };
41
+ $ this ->responseFactory = fn (): ResponseInterface => $ this ->responsePrototype ;
44
42
}
45
43
46
44
public function testConstructor (): void
Original file line number Diff line number Diff line change 9
9
10
10
class ConfigProviderTest extends TestCase
11
11
{
12
- /** @var ConfigProvider */
13
- private $ provider ;
12
+ private ConfigProvider $ provider ;
14
13
15
14
public function setUp (): void
16
15
{
You can’t perform that action at this time.
0 commit comments