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:
@@ -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');
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user