X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fshell%2FShell.php;h=467e4ef9a9dc67b0ae050a4c6b0d840dd5c4ac68;hb=286a29ad36463a49d46c7a55db57886464a4dfa8;hp=0ddc443f310d15fa710975eba9c5d9e09878ce8b;hpb=97af92da48f0d434cf4b541e7a3f2d96619a95b2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/shell/Shell.php b/includes/shell/Shell.php index 0ddc443f31..467e4ef9a9 100644 --- a/includes/shell/Shell.php +++ b/includes/shell/Shell.php @@ -237,7 +237,7 @@ class Shell { // Give site config file a chance to run the script in a wrapper. // The caller may likely want to call wfBasename() on $script. Hooks::run( 'wfShellWikiCmd', [ &$script, &$parameters, &$options ] ); - $cmd = isset( $options['php'] ) ? [ $options['php'] ] : [ $wgPhpCli ]; + $cmd = [ $options['php'] ?? $wgPhpCli ]; if ( isset( $options['wrapper'] ) ) { $cmd[] = $options['wrapper']; }