Skip to content

Commit

Permalink
Add return type to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stfndamjanovic committed Jan 22, 2024
1 parent dc33bbb commit 6787f0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/CircuitBreakerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public function test_if_listener_state_change_is_triggered()
$object = new class () extends CircuitBreakerListener {
public string $state = '';

public function onStateChange(CircuitBreaker $breaker, CircuitState $previousState, CircuitState $newState)
public function onStateChange(CircuitBreaker $breaker, CircuitState $previousState, CircuitState $newState): void
{
$this->state .= "{$previousState->value}->{$newState->value},";
}
Expand Down

0 comments on commit 6787f0a

Please sign in to comment.