X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2FScopedCallback.php;h=96075aad66560c9299e169db51983260b8e816a7;hb=cdc93a62bf958702f6a54633ea65d289ab4713b8;hp=1ec9eaa62702b01a877cd78e07a12c2833367ba9;hpb=0d8e9eacae1f47c60518f871dbb73f4539413d39;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/ScopedCallback.php b/includes/libs/ScopedCallback.php index 1ec9eaa627..96075aad66 100644 --- a/includes/libs/ScopedCallback.php +++ b/includes/libs/ScopedCallback.php @@ -36,7 +36,7 @@ class ScopedCallback { * @param array $params Callback arguments (since 1.25) * @throws Exception */ - public function __construct( $callback, array $params = array() ) { + public function __construct( $callback, array $params = [] ) { if ( $callback !== null && !is_callable( $callback ) ) { throw new InvalidArgumentException( "Provided callback is not valid." ); }