From db204b9f30eaf93e6d141c4d6cefbb8d0aa02d72 Mon Sep 17 00:00:00 2001 From: Fran Moreno Date: Sat, 8 Jun 2024 22:44:59 +0200 Subject: [PATCH] Fix CS --- tests/Gedmo/Blameable/BlameableUuidTest.php | 4 ++-- tests/Gedmo/Blameable/Fixture/Entity/Company.php | 1 + tests/bootstrap.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/Gedmo/Blameable/BlameableUuidTest.php b/tests/Gedmo/Blameable/BlameableUuidTest.php index 1e0de8b576..8c00ed14e7 100644 --- a/tests/Gedmo/Blameable/BlameableUuidTest.php +++ b/tests/Gedmo/Blameable/BlameableUuidTest.php @@ -45,7 +45,7 @@ public function testBlameableUuid(): void $company = new Company(); $company->setName('ACME'); - self::assertInstanceOf(Blameable::class, $company); + static::assertInstanceOf(Blameable::class, $company); $this->em->persist($company); $this->em->flush(); @@ -58,7 +58,7 @@ public function testBlameableUuid(): void $created = $foundCompany->getCreated(); $createdUuid = $created instanceof Uuid ? $created->toRfc4122() : null; - self::assertSame($this->uuid->toRfc4122(), $createdUuid); + static::assertSame($this->uuid->toRfc4122(), $createdUuid); } protected function getUsedEntityFixtures(): array diff --git a/tests/Gedmo/Blameable/Fixture/Entity/Company.php b/tests/Gedmo/Blameable/Fixture/Entity/Company.php index bfac50eabd..35f14d0662 100644 --- a/tests/Gedmo/Blameable/Fixture/Entity/Company.php +++ b/tests/Gedmo/Blameable/Fixture/Entity/Company.php @@ -48,6 +48,7 @@ class Company implements Blameable * @var UuidV6|null * * @Gedmo\Blameable(on="create") + * * @ORM\Column(name="created", type="uuid") */ #[ORM\Column(name: 'created', type: 'uuid')] diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 20658670a1..090f0e32f0 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -12,8 +12,8 @@ use Doctrine\Common\Annotations\AnnotationReader; use Doctrine\Common\Annotations\PsrCachedReader; use Doctrine\DBAL\Types\Type; -use Symfony\Component\Cache\Adapter\ArrayAdapter; use Symfony\Bridge\Doctrine\Types\UuidType; +use Symfony\Component\Cache\Adapter\ArrayAdapter; /* * This is bootstrap for phpUnit unit tests,