FIX: Avoid pass-literal-by-reference warning in PHP 8

This commit is contained in:
Sam Minnee 2020-08-30 12:05:44 +12:00 committed by Garion Herman
parent 622cf8b914
commit 5cb3d07f44
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class HttpMethodBypass implements Bypass
// uppercase and exclude empties
$methods = array_reduce(
$methods,
static function &(&$result, $method) {
function ($result, $method) {
$method = strtoupper(trim($method));
if (strlen($method)) {
$result[] = $method;