diff --git a/src/EventSubscriber/FormProfileSubscriber.php b/src/EventSubscriber/FormProfileSubscriber.php index 68cb0c0..b211581 100644 --- a/src/EventSubscriber/FormProfileSubscriber.php +++ b/src/EventSubscriber/FormProfileSubscriber.php @@ -47,7 +47,7 @@ class FormProfileSubscriber implements EventSubscriberInterface, LoggerAwareInte public function __construct( private readonly EventDispatcherInterface $eventDispatcher, private readonly RequestStack $requestStack, - private readonly TranslatorInterface $translator + private readonly TranslatorInterface $translator, ) { } diff --git a/tests/Unit/Validator/BannedMarkupTest.php b/tests/Unit/Validator/BannedMarkupTest.php index a0ef0db..9e5b820 100644 --- a/tests/Unit/Validator/BannedMarkupTest.php +++ b/tests/Unit/Validator/BannedMarkupTest.php @@ -53,7 +53,7 @@ public function testOnlyStringablesAndNullAreAccepted(): void $this->validate(684, $constraint); $this->assertNoViolation(); - $this->validate(new class() implements \Stringable { + $this->validate(new class implements \Stringable { public function __toString(): string { return 'example-text'; diff --git a/tests/Unit/Validator/BannedPhrasesTest.php b/tests/Unit/Validator/BannedPhrasesTest.php index 6072bab..d872eb3 100644 --- a/tests/Unit/Validator/BannedPhrasesTest.php +++ b/tests/Unit/Validator/BannedPhrasesTest.php @@ -70,7 +70,7 @@ public function testOnlyStringablesAndNullAreAccepted(): void $this->validate(684, $constraint); $this->assertNoViolation(); - $this->validate(new class() implements \Stringable { + $this->validate(new class implements \Stringable { public function __toString(): string { return 'example-baz'; diff --git a/tests/Unit/Validator/BannedScriptTest.php b/tests/Unit/Validator/BannedScriptTest.php index d7fc1b2..47ff936 100644 --- a/tests/Unit/Validator/BannedScriptTest.php +++ b/tests/Unit/Validator/BannedScriptTest.php @@ -75,7 +75,7 @@ public function testOnlyStringablesAndNullAreAccepted(): void $this->validate(684, $constraint); $this->assertNoViolation(); - $this->validate(new class() implements \Stringable { + $this->validate(new class implements \Stringable { public function __toString(): string { return 'foo'; diff --git a/tests/Unit/Validator/UrlCountTest.php b/tests/Unit/Validator/UrlCountTest.php index e99b314..2013566 100644 --- a/tests/Unit/Validator/UrlCountTest.php +++ b/tests/Unit/Validator/UrlCountTest.php @@ -53,7 +53,7 @@ public function testOnlyStringablesAndNullAreAccepted(): void $this->validate(684, $constraint); $this->assertNoViolation(); - $this->validate(new class() implements \Stringable { + $this->validate(new class implements \Stringable { public function __toString(): string { return 'foo';