Skip to content

Commit

Permalink
Restore @before
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed Jan 16, 2025
1 parent 809d29c commit 937f57b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -13,7 +12,7 @@ final class AlwaysReportingErrorHandlerTest extends TestCase
{
private FakeExceptionHandler $handler;

#[Before]
/** @before */
public function fakeExceptionHandling(): void
{
$this->afterApplicationCreated(function (): void {
Expand Down
3 changes: 1 addition & 2 deletions tests/Integration/Execution/ReportingErrorHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -13,7 +12,7 @@ final class ReportingErrorHandlerTest extends TestCase
{
private FakeExceptionHandler $handler;

#[Before]
/** @before */
public function fakeExceptionHandling(): void
{
$this->afterApplicationCreated(function (): void {
Expand Down

0 comments on commit 937f57b

Please sign in to comment.