Calling multiple methods disrupts internal state of the object
Opened this issue · 0 comments
kminek commented
i'm using PHP8
use Khill\Duration\Duration;
$duration = new Duration('7:31');
dump($duration->humanize()); // returns '7m 31s'
dump($duration->toSeconds()); // returns 0.0 instead of 451.0