From 02bf4f2960b8a79ad87605fe75bbea20f9f5888f Mon Sep 17 00:00:00 2001 From: Michael Utz Date: Tue, 15 Nov 2022 15:08:59 +0300 Subject: [PATCH] Add some phpstan annotations --- tests/Feature/UserTest.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/Feature/UserTest.php b/tests/Feature/UserTest.php index 6c5c38d..9fdbcd0 100644 --- a/tests/Feature/UserTest.php +++ b/tests/Feature/UserTest.php @@ -1,12 +1,18 @@ group('file group'); $makeUser = fn () => new User(18, 'John'); -beforeEach(fn () => $this->sut = $makeUser()); +beforeEach(function () use ($makeUser) { + $this->sut = $makeUser(); +}); test('class constructor') ->expect($makeUser)