Skip to content

Commit

Permalink
Numeric literal separator in doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Mar 26, 2024
1 parent a7d95ca commit 02f5db9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Duration.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ public static function parse(string $text): Duration
* For example, the following will result in exactly the same duration:
*
* * Duration::ofSeconds(3, 1);
* * Duration::ofSeconds(4, -999999999);
* * Duration::ofSeconds(2, 1000000001);
* * Duration::ofSeconds(4, -999_999_999);
* * Duration::ofSeconds(2, 1_000_000_001);
*
* @param int $seconds The number of seconds of the duration.
* @param int $nanoAdjustment The adjustment to the duration in nanoseconds.
Expand Down
4 changes: 2 additions & 2 deletions src/Instant.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ private function __construct(
* For example, the following will result in exactly the same instant:
*
* * Instant::of(3, 1);
* * Instant::of(4, -999999999);
* * Instant::of(2, 1000000001);
* * Instant::of(4, -999_999_999);
* * Instant::of(2, 1_000_000_001);
*
* @param int $epochSecond The number of seconds since the UNIX epoch of 1970-01-01T00:00:00Z.
* @param int $nanoAdjustment The adjustment to the epoch second in nanoseconds.
Expand Down

0 comments on commit 02f5db9

Please sign in to comment.