From 937f57bc17da59d825564bd81e3efccd557c27f6 Mon Sep 17 00:00:00 2001 From: Benedikt Franke Date: Thu, 16 Jan 2025 09:33:49 +0100 Subject: [PATCH] Restore @before --- rector.php | 1 - .../Integration/Execution/AlwaysReportingErrorHandlerTest.php | 3 +-- tests/Integration/Execution/ReportingErrorHandlerTest.php | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/rector.php b/rector.php index cf870fa0a..2dbd8b9d3 100644 --- a/rector.php +++ b/rector.php @@ -19,7 +19,6 @@ PHPUnitSetList::PHPUNIT_80, PHPUnitSetList::PHPUNIT_90, PHPUnitSetList::PHPUNIT_CODE_QUALITY, - PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES, ]); $rectorConfig->rule(Rector\CodingStyle\Rector\Closure\StaticClosureRector::class); $rectorConfig->skip([ diff --git a/tests/Integration/Execution/AlwaysReportingErrorHandlerTest.php b/tests/Integration/Execution/AlwaysReportingErrorHandlerTest.php index 570b9f9a3..cb0e737f5 100644 --- a/tests/Integration/Execution/AlwaysReportingErrorHandlerTest.php +++ b/tests/Integration/Execution/AlwaysReportingErrorHandlerTest.php @@ -4,7 +4,6 @@ use GraphQL\Error\Error; use Nuwave\Lighthouse\Execution\AlwaysReportingErrorHandler; -use PHPUnit\Framework\Attributes\Before; use Tests\FakeExceptionHandler; use Tests\TestCase; use Tests\Utils\Exceptions\ClientAwareException; @@ -13,7 +12,7 @@ final class AlwaysReportingErrorHandlerTest extends TestCase { private FakeExceptionHandler $handler; - #[Before] + /** @before */ public function fakeExceptionHandling(): void { $this->afterApplicationCreated(function (): void { diff --git a/tests/Integration/Execution/ReportingErrorHandlerTest.php b/tests/Integration/Execution/ReportingErrorHandlerTest.php index f6dabe768..1738aa630 100644 --- a/tests/Integration/Execution/ReportingErrorHandlerTest.php +++ b/tests/Integration/Execution/ReportingErrorHandlerTest.php @@ -4,7 +4,6 @@ use GraphQL\Error\Error; use Nuwave\Lighthouse\Execution\ReportingErrorHandler; -use PHPUnit\Framework\Attributes\Before; use Tests\FakeExceptionHandler; use Tests\TestCase; use Tests\Utils\Exceptions\ClientAwareException; @@ -13,7 +12,7 @@ final class ReportingErrorHandlerTest extends TestCase { private FakeExceptionHandler $handler; - #[Before] + /** @before */ public function fakeExceptionHandling(): void { $this->afterApplicationCreated(function (): void {