优化 http_build_query 在 php8 环境的使用

This commit is contained in:
F4nniu
2023-07-30 23:11:57 +08:00
parent 4a004b0b85
commit 8a25441bed

View File

@@ -128,7 +128,7 @@ abstract class Paginator implements ArrayAccess, Countable, IteratorAggregate, J
} }
$url = $path; $url = $path;
if (!empty($parameters)) { if (!empty($parameters)) {
$url .= '?' . http_build_query($parameters, null, '&'); $url .= '?' . http_build_query($parameters, '', '&');
} }
return $url . $this->buildFragment(); return $url . $this->buildFragment();
} }