Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace the usage of the built-in PHP now() function with Clock #1155

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

kacpermajczak
Copy link

This pull request addresses the enhancement and refactoring of the time-related operation. Currently, the codebase relies on the built-in PHP now() function for obtaining the current time. However, to improve testability, flexibility, and adherence to best practices, this change introduces the use of an injected clock interface.

…d clock to improve testability and decouple time-dependent behavior from the code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant