Skip to content

Add docstring to InternalClock::now() method#282

Draft
Lang-Qiu wants to merge 1 commit into
Spomky-Labs:11.6.xfrom
Lang-Qiu:auto-pr/docstrings-1780790234
Draft

Add docstring to InternalClock::now() method#282
Lang-Qiu wants to merge 1 commit into
Spomky-Labs:11.6.xfrom
Lang-Qiu:auto-pr/docstrings-1780790234

Conversation

@Lang-Qiu

@Lang-Qiu Lang-Qiu commented Jun 6, 2026

Copy link
Copy Markdown

Problem Background

The public method now() in InternalClock class implements the Psr\Clock\ClockInterface but lacks a docstring. Adding documentation improves code readability and self-documentation, making it easier for developers to understand the method's purpose and behavior.

Changes Made

  • Added a docstring to the now() method in src/InternalClock.php to describe its functionality: returning the current time as a DateTimeImmutable object.

Verification

  • The change is minimal and only adds documentation, so it should not affect functionality.
  • Run the existing test suite to ensure no regressions or failures are introduced. The code should pass all tests as before.
  • Verify that the docstring style is consistent with the repository's existing conventions.

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.

2 participants