Skip to content

Commit

Permalink
Fix: Use field directly
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Nov 7, 2023
1 parent 119bfba commit b6178e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Time.php
Expand Up @@ -70,8 +70,8 @@ public function nanoseconds(): int
*/
public function duration(self $start): Duration
{
$seconds = $this->seconds - $start->seconds();
$nanoseconds = $this->nanoseconds - $start->nanoseconds();
$seconds = $this->seconds - $start->seconds;
$nanoseconds = $this->nanoseconds - $start->nanoseconds;

if (0 > $nanoseconds) {
--$seconds;
Expand Down

0 comments on commit b6178e7

Please sign in to comment.