From 7b2f6ac692a26d246a89d0bf71dbcd8015411092 Mon Sep 17 00:00:00 2001 From: Prem Palanisamy Date: Thu, 30 Apr 2026 07:13:51 +0100 Subject: [PATCH] fix: add explicit parens to new ClassName calls in LockTest (PSR-12) --- tests/unit/Locking/LockTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/unit/Locking/LockTest.php b/tests/unit/Locking/LockTest.php index e04745c4f9..b789ffe3e0 100644 --- a/tests/unit/Locking/LockTest.php +++ b/tests/unit/Locking/LockTest.php @@ -35,15 +35,15 @@ class LockTest extends TestCase $host = \getenv('_APP_REDIS_HOST') ?: 'redis'; $port = (int) (\getenv('_APP_REDIS_PORT') ?: 6379); - $this->redis = new Redis; + $this->redis = new Redis(); $this->redis->connect($host, $port, 1.0); $this->project = new Document([ '$id' => 'test-project', '$sequence' => self::PROJECT_SEQUENCE, ]); - $this->authorization = new Authorization; - $this->log = new Log; + $this->authorization = new Authorization(); + $this->log = new Log(); $this->cleanupKeys(); } @@ -70,7 +70,7 @@ class LockTest extends TestCase { return new Lock( $this->redis, - new NoTelemetry, + new NoTelemetry(), $db ?? $this->createStub(Database::class), $auth ?? $this->authorization, $this->log, @@ -231,10 +231,10 @@ class LockTest extends TestCase public function test_project_without_sequence_falls_back_to_unknown(): void { - $emptyProject = new Document; + $emptyProject = new Document(); $lock = new Lock( $this->redis, - new NoTelemetry, + new NoTelemetry(), $this->createStub(Database::class), $this->authorization, $this->log,