From 9e0953c700739a52920363eb69832d039498e349 Mon Sep 17 00:00:00 2001 From: Nathanael Esayeas Date: Sat, 11 Feb 2023 12:34:54 -0600 Subject: [PATCH] Update MatrixEvent.php Signed-off-by: Nathanael Esayeas --- src/Event/MatrixEvent.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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