X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FInstaller.php;h=9dc80326347b73a221dd1a1e448d8ab2e8dadc32;hb=8c1086225d413bca03e2fce7b8f947e68d0a3a7e;hp=d508d7689dcbb05250b1056ac854a65f5da897fc;hpb=7abf23c194b6fc87bcb3da2453747638cbea64c5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index d508d7689d..9dc8032634 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -244,6 +244,7 @@ abstract class Installer { protected $objectCaches = [ 'xcache' => 'xcache_get', 'apc' => 'apc_fetch', + 'apcu' => 'apcu_fetch', 'wincache' => 'wincache_ucache_get' ]; @@ -566,7 +567,7 @@ abstract class Installer { /** * Determine if LocalSettings.php exists. If it does, return its variables. * - * @return array + * @return array|false */ public static function getExistingLocalSettings() { global $IP; @@ -1079,7 +1080,7 @@ abstract class Installer { /** * Convert a hex string representing a Unicode code point to that code point. * @param string $c - * @return string + * @return string|false */ protected function unicodeChar( $c ) { $c = hexdec( $c ); @@ -1437,10 +1438,10 @@ abstract class Installer { /** * Get an array of install steps. Should always be in the format of - * array( + * [ * 'name' => 'someuniquename', - * 'callback' => array( $obj, 'method' ), - * ) + * 'callback' => [ $obj, 'method' ], + * ] * There must be a config-install-$name message defined per step, which will * be shown on install. * @@ -1724,7 +1725,7 @@ abstract class Installer { * Add an installation step following the given step. * * @param callable $callback A valid installation callback array, in this form: - * array( 'name' => 'some-unique-name', 'callback' => array( $obj, 'function' ) ); + * [ 'name' => 'some-unique-name', 'callback' => [ $obj, 'function' ] ]; * @param string $findStep The step to find. Omit to put the step at the beginning */ public function addInstallStep( $callback, $findStep = 'BEGINNING' ) {