Browse Source

enforce replacements data type

nex-php
yggverse 7 months ago
parent
commit
c8bd899811
  1. 12
      src/nex.php

12
src/nex.php

@ -276,12 +276,12 @@ $server->start( @@ -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

Loading…
Cancel
Save