diff --git a/src/Event/MatrixEvent.php b/src/Event/MatrixEvent.php index b6402915..805da372 100644 --- a/src/Event/MatrixEvent.php +++ b/src/Event/MatrixEvent.php @@ -5,6 +5,7 @@ namespace Ghostwriter\Compliance\Event; use Ghostwriter\Compliance\Option\Job; +use Ghostwriter\Json\Json; use Throwable; use const JSON_THROW_ON_ERROR; use function json_encode; @@ -42,7 +43,7 @@ public function exclude(array $matrices): void */ public function getMatrix(): string { - return json_encode($this->matrix, JSON_THROW_ON_ERROR); + return Json::encode($this->matrix); } public function include(Job $job): void