X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FWebResponse.php;h=45cc7df7a60fb596c802850fd6852b61801bdcdc;hp=9396a41a7669adec303696bc31f1859c281262a6;hb=25242105e8fd03c9900250bdf9ea91be9a286625;hpb=342749942bb05852b645bbda23bc60695c25ac79 diff --git a/includes/WebResponse.php b/includes/WebResponse.php index 9396a41a76..45cc7df7a6 100644 --- a/includes/WebResponse.php +++ b/includes/WebResponse.php @@ -205,7 +205,7 @@ class WebResponse { wfDebugLog( 'cookie', 'already set ' . $func . ': "' . implode( '", "', $data ) . '"' ); } else { wfDebugLog( 'cookie', $func . ': "' . implode( '", "', $data ) . '"' ); - if ( call_user_func_array( $func, array_values( $data ) ) ) { + if ( $func( ...array_values( $data ) ) ) { self::$setCookies[$key] = $deleting ? null : [ $func, $data ]; } }