Skip to content

Commit 4a35677

Browse files
committed
fix tests
1 parent b0a1e98 commit 4a35677

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Email.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -463,10 +463,9 @@ public function send()
463463
*/
464464
public function retry()
465465
{
466-
$retry = new static;
466+
$retry = $this->replicate();
467467

468-
$retry->fill(array_merge(
469-
$this->toArray(),
468+
$retry->fill(
470469
[
471470
'id' => null,
472471
'attempts' => 0,
@@ -476,7 +475,7 @@ public function retry()
476475
'sent_at' => null,
477476
'delivered_at' => null,
478477
]
479-
));
478+
);
480479

481480
$retry->save();
482481
}

0 commit comments

Comments
 (0)