From d41f7cc8a58e90e43fa921db2278e93c17ce56f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Tue, 10 Oct 2023 17:57:21 +0200 Subject: [PATCH] Fix: Run 'make coding-standards' --- ...nalClassWithUnqualifiedDoctrineOrmMappingEntityAttribute.php | 2 +- .../Failure/NonFinalClassWithUnqualifiedEntityAttribute.php | 2 +- .../Failure/NonFinalClassWithUnqualifiedOrmEntityAttribute.php | 2 +- .../NonFinalClassWithUnqualifiedOrmMappingEntityAttribute.php | 2 +- .../Success/NonFinalClassWithAliasedOrmEntityAttribute.php | 2 +- ...FinalClassWithQualifiedDoctrineOrmMappingEntityAttribute.php | 2 +- .../Success/NonFinalClassWithQualifiedEntityAttribute.php | 2 +- .../NonFinalClassWithQualifiedMappingEntityAttribute.php | 2 +- .../NonFinalClassWithQualifiedOrmMappingEntityAttribute.php | 2 +- .../Success/ClassExtendingPhpUnitFrameworkTestCase.php | 2 +- .../Success/ClassExtendingPhpUnitFrameworkTestCase.php | 2 +- ...ncreteTestCaseExtendingAbstractTestCaseWithoutTestSuffix.php | 2 +- .../Failure/ConcreteTestCaseWithoutTestSuffix.php | 2 +- .../Success/ConcreteTestCaseWithSuffixTest.php | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/test/Fixture/Classes/FinalRuleWithAttributes/Failure/NonFinalClassWithUnqualifiedDoctrineOrmMappingEntityAttribute.php b/test/Fixture/Classes/FinalRuleWithAttributes/Failure/NonFinalClassWithUnqualifiedDoctrineOrmMappingEntityAttribute.php index 164f08ca..36b76625 100644 --- a/test/Fixture/Classes/FinalRuleWithAttributes/Failure/NonFinalClassWithUnqualifiedDoctrineOrmMappingEntityAttribute.php +++ b/test/Fixture/Classes/FinalRuleWithAttributes/Failure/NonFinalClassWithUnqualifiedDoctrineOrmMappingEntityAttribute.php @@ -4,7 +4,7 @@ namespace Ergebnis\PHPStan\Rules\Test\Fixture\Classes\FinalRuleWithAttributes\Failure; -#[Doctrine\ORM\Mapping\Entity] +#[Doctrine\ORM\Mapping\Entity()] class NonFinalClassWithUnqualifiedDoctrineOrmMappingEntityAttribute { } diff --git a/test/Fixture/Classes/FinalRuleWithAttributes/Failure/NonFinalClassWithUnqualifiedEntityAttribute.php b/test/Fixture/Classes/FinalRuleWithAttributes/Failure/NonFinalClassWithUnqualifiedEntityAttribute.php index 9f9d2e44..a89d3ed5 100644 --- a/test/Fixture/Classes/FinalRuleWithAttributes/Failure/NonFinalClassWithUnqualifiedEntityAttribute.php +++ b/test/Fixture/Classes/FinalRuleWithAttributes/Failure/NonFinalClassWithUnqualifiedEntityAttribute.php @@ -4,7 +4,7 @@ namespace Ergebnis\PHPStan\Rules\Test\Fixture\Classes\FinalRuleWithAttributes\Failure; -#[Entity] +#[Entity()] class NonFinalClassWithUnqualifiedEntityAttribute { } diff --git a/test/Fixture/Classes/FinalRuleWithAttributes/Failure/NonFinalClassWithUnqualifiedOrmEntityAttribute.php b/test/Fixture/Classes/FinalRuleWithAttributes/Failure/NonFinalClassWithUnqualifiedOrmEntityAttribute.php index 92f366d6..beef8900 100644 --- a/test/Fixture/Classes/FinalRuleWithAttributes/Failure/NonFinalClassWithUnqualifiedOrmEntityAttribute.php +++ b/test/Fixture/Classes/FinalRuleWithAttributes/Failure/NonFinalClassWithUnqualifiedOrmEntityAttribute.php @@ -4,7 +4,7 @@ namespace Ergebnis\PHPStan\Rules\Test\Fixture\Classes\FinalRuleWithAttributes\Failure; -#[ORM\Entity] +#[ORM\Entity()] class NonFinalClassWithUnqualifiedOrmEntityAttribute { } diff --git a/test/Fixture/Classes/FinalRuleWithAttributes/Failure/NonFinalClassWithUnqualifiedOrmMappingEntityAttribute.php b/test/Fixture/Classes/FinalRuleWithAttributes/Failure/NonFinalClassWithUnqualifiedOrmMappingEntityAttribute.php index 6a800dad..63084596 100644 --- a/test/Fixture/Classes/FinalRuleWithAttributes/Failure/NonFinalClassWithUnqualifiedOrmMappingEntityAttribute.php +++ b/test/Fixture/Classes/FinalRuleWithAttributes/Failure/NonFinalClassWithUnqualifiedOrmMappingEntityAttribute.php @@ -4,7 +4,7 @@ namespace Ergebnis\PHPStan\Rules\Test\Fixture\Classes\FinalRuleWithAttributes\Failure; -#[ORM\Mapping\Entity] +#[ORM\Mapping\Entity()] class NonFinalClassWithUnqualifiedOrmMappingEntityAttribute { } diff --git a/test/Fixture/Classes/FinalRuleWithAttributes/Success/NonFinalClassWithAliasedOrmEntityAttribute.php b/test/Fixture/Classes/FinalRuleWithAttributes/Success/NonFinalClassWithAliasedOrmEntityAttribute.php index aa379885..1f33f289 100644 --- a/test/Fixture/Classes/FinalRuleWithAttributes/Success/NonFinalClassWithAliasedOrmEntityAttribute.php +++ b/test/Fixture/Classes/FinalRuleWithAttributes/Success/NonFinalClassWithAliasedOrmEntityAttribute.php @@ -6,7 +6,7 @@ use Doctrine\ORM\Mapping as ORM; -#[ORM\Entity] +#[ORM\Entity()] class NonFinalClassWithAliasedOrmEntityAttribute { } diff --git a/test/Fixture/Classes/FinalRuleWithAttributes/Success/NonFinalClassWithQualifiedDoctrineOrmMappingEntityAttribute.php b/test/Fixture/Classes/FinalRuleWithAttributes/Success/NonFinalClassWithQualifiedDoctrineOrmMappingEntityAttribute.php index e02a7ffe..0e043a57 100644 --- a/test/Fixture/Classes/FinalRuleWithAttributes/Success/NonFinalClassWithQualifiedDoctrineOrmMappingEntityAttribute.php +++ b/test/Fixture/Classes/FinalRuleWithAttributes/Success/NonFinalClassWithQualifiedDoctrineOrmMappingEntityAttribute.php @@ -4,7 +4,7 @@ namespace Ergebnis\PHPStan\Rules\Test\Fixture\Classes\FinalRuleWithAttributes\Success; -#[\Doctrine\ORM\Mapping\Entity] +#[\Doctrine\ORM\Mapping\Entity()] class NonFinalClassWithQualifiedDoctrineOrmMappingEntityAttribute { } diff --git a/test/Fixture/Classes/FinalRuleWithAttributes/Success/NonFinalClassWithQualifiedEntityAttribute.php b/test/Fixture/Classes/FinalRuleWithAttributes/Success/NonFinalClassWithQualifiedEntityAttribute.php index d70e3d9b..66423662 100644 --- a/test/Fixture/Classes/FinalRuleWithAttributes/Success/NonFinalClassWithQualifiedEntityAttribute.php +++ b/test/Fixture/Classes/FinalRuleWithAttributes/Success/NonFinalClassWithQualifiedEntityAttribute.php @@ -6,7 +6,7 @@ use Doctrine\ORM\Mapping\Entity; -#[Entity] +#[Entity()] class NonFinalClassWithQualifiedEntityAttribute { } diff --git a/test/Fixture/Classes/FinalRuleWithAttributes/Success/NonFinalClassWithQualifiedMappingEntityAttribute.php b/test/Fixture/Classes/FinalRuleWithAttributes/Success/NonFinalClassWithQualifiedMappingEntityAttribute.php index 3bab4145..403945d7 100644 --- a/test/Fixture/Classes/FinalRuleWithAttributes/Success/NonFinalClassWithQualifiedMappingEntityAttribute.php +++ b/test/Fixture/Classes/FinalRuleWithAttributes/Success/NonFinalClassWithQualifiedMappingEntityAttribute.php @@ -6,7 +6,7 @@ use Doctrine\ORM\Mapping; -#[Mapping\Entity] +#[Mapping\Entity()] class NonFinalClassWithQualifiedMappingEntityAttribute { } diff --git a/test/Fixture/Classes/FinalRuleWithAttributes/Success/NonFinalClassWithQualifiedOrmMappingEntityAttribute.php b/test/Fixture/Classes/FinalRuleWithAttributes/Success/NonFinalClassWithQualifiedOrmMappingEntityAttribute.php index 4bc15793..732e0639 100644 --- a/test/Fixture/Classes/FinalRuleWithAttributes/Success/NonFinalClassWithQualifiedOrmMappingEntityAttribute.php +++ b/test/Fixture/Classes/FinalRuleWithAttributes/Success/NonFinalClassWithQualifiedOrmMappingEntityAttribute.php @@ -6,7 +6,7 @@ use Doctrine\ORM; -#[ORM\Mapping\Entity] +#[ORM\Mapping\Entity()] class NonFinalClassWithQualifiedOrmMappingEntityAttribute { } diff --git a/test/Fixture/Classes/NoExtendsRule/Success/ClassExtendingPhpUnitFrameworkTestCase.php b/test/Fixture/Classes/NoExtendsRule/Success/ClassExtendingPhpUnitFrameworkTestCase.php index b4ff9f3a..11425f06 100644 --- a/test/Fixture/Classes/NoExtendsRule/Success/ClassExtendingPhpUnitFrameworkTestCase.php +++ b/test/Fixture/Classes/NoExtendsRule/Success/ClassExtendingPhpUnitFrameworkTestCase.php @@ -6,7 +6,7 @@ use PHPUnit\Framework; -#[Framework\Attributes\CoversNothing] +#[Framework\Attributes\CoversNothing()] final class ClassExtendingPhpUnitFrameworkTestCase extends Framework\TestCase { } diff --git a/test/Fixture/Classes/NoExtendsRuleWithClassesAllowedToBeExtended/Success/ClassExtendingPhpUnitFrameworkTestCase.php b/test/Fixture/Classes/NoExtendsRuleWithClassesAllowedToBeExtended/Success/ClassExtendingPhpUnitFrameworkTestCase.php index 5ea44c63..007efee4 100644 --- a/test/Fixture/Classes/NoExtendsRuleWithClassesAllowedToBeExtended/Success/ClassExtendingPhpUnitFrameworkTestCase.php +++ b/test/Fixture/Classes/NoExtendsRuleWithClassesAllowedToBeExtended/Success/ClassExtendingPhpUnitFrameworkTestCase.php @@ -6,7 +6,7 @@ use PHPUnit\Framework; -#[Framework\Attributes\CoversNothing] +#[Framework\Attributes\CoversNothing()] final class ClassExtendingPhpUnitFrameworkTestCase extends Framework\TestCase { } diff --git a/test/Fixture/Classes/PHPUnit/Framework/TestCaseWithSuffixRule/Failure/ConcreteTestCaseExtendingAbstractTestCaseWithoutTestSuffix.php b/test/Fixture/Classes/PHPUnit/Framework/TestCaseWithSuffixRule/Failure/ConcreteTestCaseExtendingAbstractTestCaseWithoutTestSuffix.php index cb210bdc..28885f2d 100644 --- a/test/Fixture/Classes/PHPUnit/Framework/TestCaseWithSuffixRule/Failure/ConcreteTestCaseExtendingAbstractTestCaseWithoutTestSuffix.php +++ b/test/Fixture/Classes/PHPUnit/Framework/TestCaseWithSuffixRule/Failure/ConcreteTestCaseExtendingAbstractTestCaseWithoutTestSuffix.php @@ -6,7 +6,7 @@ use PHPUnit\Framework; -#[Framework\Attributes\CoversNothing] +#[Framework\Attributes\CoversNothing()] final class ConcreteTestCaseExtendingAbstractTestCaseWithoutTestSuffix extends AbstractTestCase { } diff --git a/test/Fixture/Classes/PHPUnit/Framework/TestCaseWithSuffixRule/Failure/ConcreteTestCaseWithoutTestSuffix.php b/test/Fixture/Classes/PHPUnit/Framework/TestCaseWithSuffixRule/Failure/ConcreteTestCaseWithoutTestSuffix.php index 703c89cc..80f45b25 100644 --- a/test/Fixture/Classes/PHPUnit/Framework/TestCaseWithSuffixRule/Failure/ConcreteTestCaseWithoutTestSuffix.php +++ b/test/Fixture/Classes/PHPUnit/Framework/TestCaseWithSuffixRule/Failure/ConcreteTestCaseWithoutTestSuffix.php @@ -6,7 +6,7 @@ use PHPUnit\Framework; -#[Framework\Attributes\CoversNothing] +#[Framework\Attributes\CoversNothing()] final class ConcreteTestCaseWithoutTestSuffix extends Framework\TestCase { public function testFooIsNotBar(): void diff --git a/test/Fixture/Classes/PHPUnit/Framework/TestCaseWithSuffixRule/Success/ConcreteTestCaseWithSuffixTest.php b/test/Fixture/Classes/PHPUnit/Framework/TestCaseWithSuffixRule/Success/ConcreteTestCaseWithSuffixTest.php index 4c355420..42a59399 100644 --- a/test/Fixture/Classes/PHPUnit/Framework/TestCaseWithSuffixRule/Success/ConcreteTestCaseWithSuffixTest.php +++ b/test/Fixture/Classes/PHPUnit/Framework/TestCaseWithSuffixRule/Success/ConcreteTestCaseWithSuffixTest.php @@ -6,7 +6,7 @@ use PHPUnit\Framework; -#[Framework\Attributes\CoversNothing] +#[Framework\Attributes\CoversNothing()] final class ConcreteTestCaseWithSuffixTest extends Framework\TestCase { public function testFooIsNotBar(): void