X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FfindDeprecated.php;h=ec998da6a2996504f257964512945e9547278838;hp=6128d2386deacc376005eb46ac5f12df82e9df0b;hb=19124fd1d24d0426743c6e0dd83a5a9eae896e66;hpb=52ce204415df71eb978b1f6f61a6122f7c3b09f6 diff --git a/maintenance/findDeprecated.php b/maintenance/findDeprecated.php index 6128d2386d..ec998da6a2 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 ) {