Skip to content

Commit

Permalink
Use toSeconds() to cover it in code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Sep 17, 2019
1 parent c3b49fb commit ff7045e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Duration.php
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ public function toSeconds() : int
*/
public function toSecondsPart() : int
{
return $this->seconds % LocalTime::SECONDS_PER_MINUTE;
return $this->toSeconds() % LocalTime::SECONDS_PER_MINUTE;
}

/**
Expand Down

0 comments on commit ff7045e

Please sign in to comment.