Fix PHP CS Fixer: remove parentheses on anonymous classes

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-19 00:03:23 +01:00
parent af8bbc24dc
commit 5028afd3a5
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ class MessengerFailureSubscriberTest extends TestCase
$subscriber = new MessengerFailureSubscriber($em, $mailer); $subscriber = new MessengerFailureSubscriber($em, $mailer);
$message = new class () { $message = new class {
public function __serialize(): array public function __serialize(): array
{ {
throw new \RuntimeException('not serializable'); throw new \RuntimeException('not serializable');

View File

@@ -40,7 +40,7 @@ class UserRepositoryTest extends KernelTestCase
{ {
$this->expectException(UnsupportedUserException::class); $this->expectException(UnsupportedUserException::class);
$fakeUser = new class () implements PasswordAuthenticatedUserInterface { $fakeUser = new class implements PasswordAuthenticatedUserInterface {
public function getPassword(): ?string public function getPassword(): ?string
{ {
return null; return null;