Make travis test against PHP 7.2
[lhc/web/wiklou.git] / maintenance / validateRegistrationFile.php
index 9906990..ea27a7e 100644 (file)
@@ -8,8 +8,8 @@ class ValidateRegistrationFile extends Maintenance {
                $this->addArg( 'path', 'Path to extension.json/skin.json file.', true );
        }
        public function execute() {
-               $validator = new ExtensionJsonValidator( function( $msg ) {
-                       $this->error( $msg, 1 );
+               $validator = new ExtensionJsonValidator( function ( $msg ) {
+                       $this->fatalError( $msg );
                } );
                $validator->checkDependencies();
                $path = $this->getArg( 0 );
@@ -17,7 +17,7 @@ class ValidateRegistrationFile extends Maintenance {
                        $validator->validate( $path );
                        $this->output( "$path validates against the schema!\n" );
                } catch ( ExtensionJsonValidationError $e ) {
-                       $this->error( $e->getMessage(), 1 );
+                       $this->fatalError( $e->getMessage() );
                }
        }
 }