Skip to content

Commit

Permalink
Update MatrixEvent.php
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed Jun 7, 2022
1 parent a224950 commit 0ff04ab
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Event/MatrixEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
namespace Ghostwriter\Compliance\Event;

use Ghostwriter\Compliance\ValueObject\Job;
use JsonException;
use function json_encode;
use Throwable;
use const JSON_THROW_ON_ERROR;
use function json_encode;

final class MatrixEvent extends AbstractEvent
{
Expand Down Expand Up @@ -38,11 +38,10 @@ public function exclude(array $matrices): void
}

/**
* @throws JsonException
* @throws Throwable
*/
public function getMatrix(): string
{
/** @return string */
return json_encode($this->matrix, JSON_THROW_ON_ERROR);
}

Expand Down

0 comments on commit 0ff04ab

Please sign in to comment.