Fix code quality with rector [skip ci]

This commit is contained in:
James Cole
2025-11-09 09:08:03 +01:00
parent d2610be790
commit 68183a0a0e
209 changed files with 1021 additions and 1248 deletions

View File

@@ -25,6 +25,7 @@ declare(strict_types=1);
namespace Tests\integration\Api\Chart;
use FireflyIII\User;
use Override;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\integration\TestCase;
@@ -37,14 +38,14 @@ use Tests\integration\TestCase;
final class CategoryControllerTest extends TestCase
{
use RefreshDatabase;
private $user;
private ?User $user = null;
#[Override]
protected function setUp(): void
{
parent::setUp();
if (!isset($this->user)) {
if (!$this->user instanceof User) {
$this->user = $this->createAuthenticatedUser();
}
$this->actingAs($this->user);