Skip to content

Commit

Permalink
Merge pull request #3 from PcComponentes/FranMoraton-patch-1
Browse files Browse the repository at this point in the history
use array_key_first() for first item in configurations
  • Loading branch information
FranMoraton authored Jun 29, 2023
2 parents 4c53881 + 7bdb7f4 commit 3c43c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/MessengerRetryService.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ private function getRetryConfiguration(Envelope $message): ?MessengerRetryConfig
return null;
}

return \current($retryConfigurations);
return $retryConfigurations[\array_key_first($retryConfigurations)];
}
}

0 comments on commit 3c43c58

Please sign in to comment.