From db93871194df0de4224d03bd94008e0b0c6ce769 Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sat, 2 May 2026 22:05:58 +0300 Subject: [PATCH] move inline use statements to file headers two type hints introduced earlier on this branch referenced classes by their fully-qualified names inline. hoist them to the top-of-file use block per backend-context.md PHP rules. --- tests/Unit/ScheduledNode/UseCases/GetTodaysScheduleTest.php | 3 ++- tests/e2e/Controllers/TextControllerTest.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Unit/ScheduledNode/UseCases/GetTodaysScheduleTest.php b/tests/Unit/ScheduledNode/UseCases/GetTodaysScheduleTest.php index 5a2afc6..ff38c45 100644 --- a/tests/Unit/ScheduledNode/UseCases/GetTodaysScheduleTest.php +++ b/tests/Unit/ScheduledNode/UseCases/GetTodaysScheduleTest.php @@ -11,6 +11,7 @@ use App\ScheduledNode\UseCases\GetTodaysSchedule; use App\ScheduledNode\UseCases\GetTodaysScheduleRequest; use App\Text\Text; use App\User\UseCases\CreateUserDto; +use App\User\User; use App\ValueObjects\EmailAddress; use DateTimeImmutable; use DomainException; @@ -29,7 +30,7 @@ class GetTodaysScheduleTest extends TestCase private GetTodaysSchedule $useCase; - private \App\User\User $user; + private User $user; protected function setUp(): void { diff --git a/tests/e2e/Controllers/TextControllerTest.php b/tests/e2e/Controllers/TextControllerTest.php index 6498568..560081b 100644 --- a/tests/e2e/Controllers/TextControllerTest.php +++ b/tests/e2e/Controllers/TextControllerTest.php @@ -9,6 +9,7 @@ use App\User\UseCases\CreateUserDto; use App\User\User; use App\ValueObjects\EmailAddress; use PHPUnit\Framework\TestCase; +use Psr\Http\Message\ServerRequestInterface; use Slim\Psr7\Factory\ServerRequestFactory; use Slim\Psr7\Response; use Tests\Fakes\FakeNodeRepository; @@ -55,7 +56,7 @@ class TextControllerTest extends TestCase $this->controller = new TextController($this->textRepo); } - private function makeRequest(?User $user): \Psr\Http\Message\ServerRequestInterface + private function makeRequest(?User $user): ServerRequestInterface { $request = new ServerRequestFactory() ->createServerRequest('GET', 'http://localhost/texts');