Merge "installer: Deprecate WebInstaller::getInfoBox, getWarningBox and getErrorBox"
[lhc/web/wiklou.git] / maintenance / nukeNS.php
index e735aed..05688df 100644 (file)
@@ -88,7 +88,9 @@ class NukeNS extends Maintenance {
                                        $dbw->query( "DELETE FROM $tbl_pag WHERE page_id = $id" );
                                        $this->commitTransaction( $dbw, __METHOD__ );
                                        // Delete revisions as appropriate
-                                       $child = $this->runChild( 'NukePage', 'nukePage.php' );
+                                       /** @var NukePage $child */
+                                       $child = $this->runChild( NukePage::class, 'nukePage.php' );
+                                       '@phan-var NukePage $child';
                                        $child->deleteRevisions( $revs );
                                        $this->purgeRedundantText( true );
                                        $n_deleted++;
@@ -118,5 +120,5 @@ class NukeNS extends Maintenance {
        }
 }
 
-$maintClass = "NukeNS";
+$maintClass = NukeNS::class;
 require_once RUN_MAINTENANCE_IF_MAIN;