X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FPHPVersionCheck.php;h=46452d9c82c1ea2536f7e71d89eddca1d4c53c04;hb=3fedcc76716b2fd15e8b992d5c72b848d891b5f7;hp=da428dde39690dd62bec856b8eff8bfc621fbc20;hpb=9e9e3c798f1155e19c20dff9440c62282c85d0a1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/PHPVersionCheck.php b/includes/PHPVersionCheck.php index da428dde39..46452d9c82 100644 --- a/includes/PHPVersionCheck.php +++ b/includes/PHPVersionCheck.php @@ -1,5 +1,4 @@ entryPoint = $entryPoint; @@ -94,7 +93,7 @@ class PHPVersionCheck { 'implementation' => 'PHP', 'version' => PHP_VERSION, 'vendor' => 'the PHP Group', - 'upstreamSupported' => '5.5.0', + 'upstreamSupported' => '5.6.0', 'minSupported' => '5.5.9', 'upgradeURL' => 'https://secure.php.net/downloads.php', ); @@ -102,8 +101,6 @@ class PHPVersionCheck { /** * Displays an error, if the installed php version does not meet the minimum requirement. - * - * @return $this */ function checkRequiredPHPVersion() { $phpInfo = $this->getPHPInfo(); @@ -124,22 +121,22 @@ class PHPVersionCheck { . "{$otherInfo['minSupported']}.\n\nCheck if you have a" . " newer php executable with a different name, such as php5.\n\n"; - // phpcs:ignore Generic.Files.LineLength + // phpcs:disable Generic.Files.LineLength $longHtml = <<upgrading your copy of {$phpInfo['implementation']}. - {$phpInfo['implementation']} versions less than {$phpInfo['upstreamSupported']} are no + {$phpInfo['implementation']} versions less than {$phpInfo['upstreamSupported']} are no longer supported by {$phpInfo['vendor']} and will not receive security or bugfix updates.

If for some reason you are unable to upgrade your {$phpInfo['implementation']} version, - you will need to download an + you will need to download an older version of MediaWiki from our website. See ourcompatibility page for details of which versions are compatible with prior versions of {$phpInfo['implementation']}. HTML; - // phpcs:enable + // phpcs:enable Generic.Files.LineLength $this->triggerError( "Supported {$phpInfo['implementation']} versions", $shortText, @@ -151,8 +148,6 @@ HTML; /** * Displays an error, if the vendor/autoload.php file could not be found. - * - * @return $this */ function checkVendorExistence() { if ( !file_exists( dirname( __FILE__ ) . '/../vendor/autoload.php' ) ) { @@ -164,14 +159,14 @@ HTML; . "https://www.mediawiki.org/wiki/Download_from_Git#Fetch_external_libraries\n" . "for help on installing the required components."; - // phpcs:ignore Generic.Files.LineLength + // phpcs:disable Generic.Files.LineLength $longHtml = <<mediawiki.org for help on installing the required components. HTML; - // phpcs:enable + // phpcs:enable Generic.Files.LineLength $this->triggerError( 'External dependencies', $shortText, $longText, $longHtml ); } @@ -179,8 +174,6 @@ HTML; /** * Displays an error, if a PHP extension does not exist. - * - * @return $this */ function checkExtensionExistence() { $missingExtensions = array();