Skip to content

Commit eee302f

Browse files
bonroyagederrabus
authored andcommitted
Code style change in @PER-CS2.0 affecting @Symfony (parentheses for anonymous classes)
1 parent 1f6ecef commit eee302f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/LockTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ public function testSuccessReleaseLog()
373373
{
374374
$key = new Key((string) random_int(100, 1000));
375375
$store = new InMemoryStore();
376-
$logger = new class() extends AbstractLogger {
376+
$logger = new class extends AbstractLogger {
377377
private array $logs = [];
378378

379379
public function log($level, $message, array $context = []): void
@@ -468,7 +468,7 @@ public function testAcquireReadNoBlockingWithSharedLockStoreInterface()
468468
public function testAcquireReadTwiceWithExpiration()
469469
{
470470
$key = new Key(__METHOD__);
471-
$store = new class() implements PersistingStoreInterface {
471+
$store = new class implements PersistingStoreInterface {
472472
use ExpiringStoreTrait;
473473
private array $keys = [];
474474
private int $initialTtl = 30;
@@ -512,7 +512,7 @@ public function putOffExpiration(Key $key, $ttl): void
512512
public function testAcquireTwiceWithExpiration()
513513
{
514514
$key = new Key(__METHOD__);
515-
$store = new class() implements PersistingStoreInterface {
515+
$store = new class implements PersistingStoreInterface {
516516
use ExpiringStoreTrait;
517517
private array $keys = [];
518518
private int $initialTtl = 30;

0 commit comments

Comments
 (0)