Skip to content

Commit

Permalink
Merge branch 'main' of github.com:stfndamjanovic/php-circuit-breaker
Browse files Browse the repository at this point in the history
  • Loading branch information
stfndamjanovic committed Jan 22, 2024
2 parents 9ce3fad + e3a1234 commit 6c254c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CircuitBreaker.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected function makeStateHandler()
CircuitState::Closed->value => ClosedStateHandler::class,
CircuitState::HalfOpen->value => HalfOpenStateHandler::class,
CircuitState::Open->value => OpenStateHandler::class,
CircuitState::ForceOpen->value => ForceOpenStateHandler::class
CircuitState::ForceOpen->value => ForceOpenStateHandler::class,
];

if (! array_key_exists($state->value, $map)) {
Expand Down
2 changes: 1 addition & 1 deletion tests/CircuitBreakerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,6 @@ public function test_if_it_can_force_open_circuit()

$this->expectException(CircuitForceOpenException::class);

$breaker->call(fn() => true);
$breaker->call(fn () => true);
}
}

0 comments on commit 6c254c4

Please sign in to comment.