From c8bd899811424429b378c530617c61525aed95b4 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 27 Apr 2024 16:44:22 +0300 Subject: [PATCH] enforce replacements data type --- src/nex.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/nex.php b/src/nex.php index b3d24f0..ffbca52 100644 --- a/src/nex.php +++ b/src/nex.php @@ -276,12 +276,12 @@ $server->start( '{goal}', ], [ - date('c'), - (int) !empty($response), - parse_url($connect, PHP_URL_HOST), - parse_url($connect, PHP_URL_PORT), - str_replace('%', '%%', empty($request) ? '/' : trim($request)), - str_replace('%', '%%', $goal) + (string) date('c'), + (string) (int) !empty($response), + (string) parse_url($connect, PHP_URL_HOST), + (string) parse_url($connect, PHP_URL_PORT), + (string) str_replace('%', '%%', empty($request) ? '/' : trim($request)), + (string) str_replace('%', '%%', $goal) ], NEXT_DUMP ) . PHP_EOL