X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FfindDeprecated.php;h=ae2ee421a8a0cfcfae6d87999a4708757456a17d;hp=6128d2386deacc376005eb46ac5f12df82e9df0b;hb=a7064a0883ec6d715c8c8103efe777769a85437d;hpb=62a9ee2f45e43d3a5dc3564334c210fa1e3ad298 diff --git a/maintenance/findDeprecated.php b/maintenance/findDeprecated.php index 6128d2386d..ae2ee421a8 100644 --- a/maintenance/findDeprecated.php +++ b/maintenance/findDeprecated.php @@ -132,6 +132,9 @@ class FindDeprecated extends Maintenance { $this->addDescription( 'Find deprecated interfaces' ); } + /** + * @return SplFileInfo[] + */ public function getFiles() { global $IP; @@ -163,7 +166,7 @@ class FindDeprecated extends Maintenance { } $finder->setCurrentFile( substr( $file->getPathname(), strlen( $IP ) + 1 ) ); - $nodes = $parser->parse( $code, [ 'throwOnError' => false ] ); + $nodes = $parser->parse( $code ); $traverser->traverse( $nodes ); if ( $i % $chunkSize === 0 ) { @@ -199,5 +202,5 @@ class FindDeprecated extends Maintenance { } } -$maintClass = 'FindDeprecated'; +$maintClass = FindDeprecated::class; require_once RUN_MAINTENANCE_IF_MAIN;