X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fregistration%2FExtensionJsonValidator.php;h=7e3afaa803a2057f850273ee76ed70af887cb6df;hb=aec80a1fb774715e43430ab583c190b79e468fce;hp=f6e76af557c652dd971ad3b97256b4665e5abb20;hpb=1676448145f28cdf5bf399b13a39d909d7e0bb77;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/registration/ExtensionJsonValidator.php b/includes/registration/ExtensionJsonValidator.php index f6e76af557..7e3afaa803 100644 --- a/includes/registration/ExtensionJsonValidator.php +++ b/includes/registration/ExtensionJsonValidator.php @@ -40,6 +40,7 @@ class ExtensionJsonValidator { } /** + * @codeCoverageIgnore * @return bool */ public function checkDependencies() { @@ -75,11 +76,7 @@ class ExtensionJsonValidator { } $version = $data->manifest_version; - if ( $version !== ExtensionRegistry::MANIFEST_VERSION ) { - $schemaPath = __DIR__ . "/../../docs/extension.schema.v$version.json"; - } else { - $schemaPath = __DIR__ . '/../../docs/extension.schema.json'; - } + $schemaPath = __DIR__ . "/../../docs/extension.schema.v$version.json"; // Not too old if ( $version < ExtensionRegistry::OLDEST_MANIFEST_VERSION ) { @@ -109,7 +106,7 @@ class ExtensionJsonValidator { // All good. return true; } else { - $out = "$path did pass validation.\n"; + $out = "$path did not pass validation.\n"; foreach ( $validator->getErrors() as $error ) { $out .= "[{$error['property']}] {$error['message']}\n"; }