mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX: Avoid pass-literal-by-reference warning in PHP 8
This commit is contained in:
parent
622cf8b914
commit
5cb3d07f44
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user