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 Feb 11, 2023
1 parent 3bddcf8 commit 9e0953c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Event/MatrixEvent.php
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9e0953c

Please sign in to comment.