Skip to content

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

Open
kacpermajczak wants to merge 1 commit into
lexik:2.xfrom
kacpermajczak:refactor/use-injected-clock
Open

kacpermajczak wants to merge 1 commit into
lexik:2.xfrom
kacpermajczak:refactor/use-injected-clock

Conversation

@kacpermajczak

Copy link
Copy Markdown

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