From 03cd510e277769058278d384976fbf88010671b4 Mon Sep 17 00:00:00 2001 From: stfndamjanovic Date: Thu, 11 Jan 2024 16:51:42 +0000 Subject: [PATCH] Fix styling --- tests/CircuitBreakerTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/CircuitBreakerTest.php b/tests/CircuitBreakerTest.php index 7b4225c..82a1a97 100644 --- a/tests/CircuitBreakerTest.php +++ b/tests/CircuitBreakerTest.php @@ -169,7 +169,7 @@ public function test_if_it_will_transit_back_to_open_state_after_first_fail() public function test_if_listener_is_called() { - $object = new class extends CircuitBreakerListener { + $object = new class () extends CircuitBreakerListener { public int $successCount = 0; public int $failCount = 0; @@ -211,7 +211,7 @@ public function onFail($exception): void public function test_if_it_can_skip_some_exception() { - $testException = new class extends \Exception {}; + $testException = new class () extends \Exception {}; $factory = CircuitBreakerFactory::make() ->skipFailure(function (\Exception $exception) use ($testException) { @@ -235,7 +235,7 @@ public function test_if_it_can_fail_even_without_exception() }); try { - $factory->call(fn() => new \stdClass()); + $factory->call(fn () => new \stdClass()); } catch (\Exception) { }