From 01e256d13b4f7783112830acd76f5b9bc7395d46 Mon Sep 17 00:00:00 2001 From: roxblnfk Date: Fri, 1 Dec 2023 22:13:26 +0400 Subject: [PATCH] Optimize JSON encoding --- app/src/Application/Broadcasting/BroadcastEventInterceptor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/Application/Broadcasting/BroadcastEventInterceptor.php b/app/src/Application/Broadcasting/BroadcastEventInterceptor.php index f5b698c2..097517b6 100644 --- a/app/src/Application/Broadcasting/BroadcastEventInterceptor.php +++ b/app/src/Application/Broadcasting/BroadcastEventInterceptor.php @@ -26,7 +26,7 @@ public function process(string $controller, string $action, array $parameters, C \json_encode([ 'event' => $event->getEventName(), 'data' => $event->jsonSerialize(), - ]) + ], JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE | JSON_INVALID_UTF8_SUBSTITUTE) ); }