diff --git a/src/Contract/SagaStatusChanged.php b/src/Contract/SagaStatusChanged.php index ea568f0..a760ef9 100644 --- a/src/Contract/SagaStatusChanged.php +++ b/src/Contract/SagaStatusChanged.php @@ -98,8 +98,8 @@ public static function create( $sagaId->toString(), \get_class($sagaId), $sagaId->sagaClass, - $currentStatus->toString(), - $newStatus->toString(), + $currentStatus->toString(), + $newStatus->toString(), $withReason, new \DateTimeImmutable('NOW') ); diff --git a/src/SagaStatus.php b/src/SagaStatus.php index f53dc75..5490aea 100644 --- a/src/SagaStatus.php +++ b/src/SagaStatus.php @@ -53,7 +53,7 @@ final class SagaStatus */ public static function create(string $value): self { - if(false === \in_array($value, self::LIST, true)) + if (false === \in_array($value, self::LIST, true)) { throw InvalidSagaStatus::create($value); }