X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fupdate.php;h=b6c7ae473b1861e4b4f58e30b53dcbe5edfbdc2f;hb=60fbf0d875c27dc6608c97ce1f96e1df3d88b788;hp=50fb6dc5033e86475a2e1e43ccd783cd8ff53803;hpb=80566f8a8014c0a3ec2ddc30f1164fb796d70169;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/update.php b/maintenance/update.php index 50fb6dc503..b6c7ae473b 100755 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -64,7 +64,7 @@ class UpdateMediaWiki extends Maintenance { function compatChecks() { $minimumPcreVersion = Installer::MINIMUM_PCRE_VERSION; - list( $pcreVersion ) = explode( ' ', PCRE_VERSION, 2 ); + $pcreVersion = explode( ' ', PCRE_VERSION, 2 )[0]; if ( version_compare( $pcreVersion, $minimumPcreVersion, '<' ) ) { $this->fatalError( "PCRE $minimumPcreVersion or later is required.\n" .