Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src/RetryOptions.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
* Copyright ©2024 Robert Landers
*
Expand All @@ -23,7 +24,7 @@

namespace Bottledcode\DurablePhp;

use Withinboredom\Time\Time;
use Withinboredom\Time;

use function Withinboredom\Time\Hours;

Expand All @@ -32,9 +33,9 @@ class RetryOptions
public function __construct(
public Time $firstRetryInterval,
public int $maxNumberAttempts,
public Time|null $maxRetryInterval = null,
public ?Time $maxRetryInterval = null,
public float $backoffCoefficient = 1.0,
public Time|null $retryTimeout = null,
public ?Time $retryTimeout = null,
) {
$this->maxRetryInterval = Hours(1);
$this->retryTimeout = Hours(1);
Expand Down
3 changes: 2 additions & 1 deletion src/State/Attributes/TimeToLive.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
* Copyright ©2024 Robert Landers
*
Expand All @@ -24,7 +25,7 @@
namespace Bottledcode\DurablePhp\State\Attributes;

use Attribute;
use Withinboredom\Time\Time;
use Withinboredom\Time;

#[Attribute(Attribute::TARGET_CLASS)]
readonly class TimeToLive
Expand Down
Loading