diff --git a/tests/Maker/MakeAuthenticatorTest.php b/tests/Maker/MakeAuthenticatorTest.php index 81de4053d..fe5fb87c1 100644 --- a/tests/Maker/MakeAuthenticatorTest.php +++ b/tests/Maker/MakeAuthenticatorTest.php @@ -16,9 +16,7 @@ use Symfony\Bundle\MakerBundle\Test\MakerTestRunner; use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface; -/** - * @group legacy - */ +#[\PHPUnit\Framework\Attributes\Group('legacy')] class MakeAuthenticatorTest extends MakerTestCase { protected function getMakerClass(): string diff --git a/tests/Maker/MakeFunctionalTestTest.php b/tests/Maker/MakeFunctionalTestTest.php index 0bccc87e4..b534249f1 100644 --- a/tests/Maker/MakeFunctionalTestTest.php +++ b/tests/Maker/MakeFunctionalTestTest.php @@ -16,9 +16,7 @@ use Symfony\Bundle\MakerBundle\Test\MakerTestDetails; use Symfony\Bundle\MakerBundle\Test\MakerTestRunner; -/** - * @group legacy - */ +#[\PHPUnit\Framework\Attributes\Group('legacy')] class MakeFunctionalTestTest extends MakerTestCase { protected function getMakerClass(): string diff --git a/tests/Maker/MakeScheduleTest.php b/tests/Maker/MakeScheduleTest.php index 983fd35d1..b14fe74b1 100644 --- a/tests/Maker/MakeScheduleTest.php +++ b/tests/Maker/MakeScheduleTest.php @@ -15,9 +15,7 @@ use Symfony\Bundle\MakerBundle\Test\MakerTestCase; use Symfony\Bundle\MakerBundle\Test\MakerTestRunner; -/** - * @group legacy - */ +#[\PHPUnit\Framework\Attributes\Group('legacy')] class MakeScheduleTest extends MakerTestCase { protected function getMakerClass(): string diff --git a/tests/Maker/MakeSubscriberTest.php b/tests/Maker/MakeSubscriberTest.php index b8cd54330..514951c45 100644 --- a/tests/Maker/MakeSubscriberTest.php +++ b/tests/Maker/MakeSubscriberTest.php @@ -15,9 +15,7 @@ use Symfony\Bundle\MakerBundle\Test\MakerTestCase; use Symfony\Bundle\MakerBundle\Test\MakerTestRunner; -/** - * @group legacy - */ +#[\PHPUnit\Framework\Attributes\Group('legacy')] class MakeSubscriberTest extends MakerTestCase { protected function getMakerClass(): string diff --git a/tests/Maker/MakeUnitTestTest.php b/tests/Maker/MakeUnitTestTest.php index 43a48f8ec..861f21bf5 100644 --- a/tests/Maker/MakeUnitTestTest.php +++ b/tests/Maker/MakeUnitTestTest.php @@ -15,9 +15,7 @@ use Symfony\Bundle\MakerBundle\Test\MakerTestCase; use Symfony\Bundle\MakerBundle\Test\MakerTestRunner; -/** - * @group legacy - */ +#[\PHPUnit\Framework\Attributes\Group('legacy')] class MakeUnitTestTest extends MakerTestCase { protected function getMakerClass(): string diff --git a/tests/Util/fixtures/source/User_only_props.php b/tests/Util/fixtures/source/User_only_props.php index 6f0984849..510a6ecfc 100644 --- a/tests/Util/fixtures/source/User_only_props.php +++ b/tests/Util/fixtures/source/User_only_props.php @@ -13,8 +13,6 @@ class User #[ORM\Column()] private ?int $id = null; - /** - * @ORM\Column() - */ + #[ORM\Column] private $firstName; } diff --git a/tests/fixtures/make-form/embeddable/Food.php b/tests/fixtures/make-form/embeddable/Food.php index 211d456cb..0e83798ca 100644 --- a/tests/fixtures/make-form/embeddable/Food.php +++ b/tests/fixtures/make-form/embeddable/Food.php @@ -15,9 +15,7 @@ class Food #[ORM\Column] private ?string $title = null; - /** - * @ORM\Embedded(class=Receipt::class) - */ + #[ORM\Embedded(class: Receipt::class)] private $receipt; public function __construct() diff --git a/tests/fixtures/make-form/embeddable/Receipt.php b/tests/fixtures/make-form/embeddable/Receipt.php index 6d6b2d61d..2e237e352 100644 --- a/tests/fixtures/make-form/embeddable/Receipt.php +++ b/tests/fixtures/make-form/embeddable/Receipt.php @@ -4,18 +4,12 @@ use Doctrine\ORM\Mapping as ORM; -/** - * @ORM\Embeddable() - */ +#[ORM\Embeddable] class Receipt { - /** - * @ORM\Column(type="string", length=255) - */ + #[ORM\Column(type: 'string', length: 255)] private $ingredients; - /** - * @ORM\Column(type="string", length=255) - */ + #[ORM\Column(type: 'string', length: 255)] private $steps; }