@@ -98,8 +98,6 @@ public function analyseFile(
9898 $ this ->collectErrors ($ analysedFiles );
9999 $ parserNodes = $ this ->parser ->parseFile ($ file );
100100 $ processedFiles [] = $ file ;
101- $ linesToIgnore = $ unmatchedLineIgnores = [$ file => $ this ->getLinesToIgnoreFromTokens ($ parserNodes )];
102- $ ignoreErrorExtensions = $ this ->ignoreErrorExtensionProvider ->getExtensions ();
103101
104102 $ nodeCallback = new FileAnalyserCallback (
105103 $ file ,
@@ -108,12 +106,10 @@ public function analyseFile(
108106 $ collectorRegistry ,
109107 $ outerNodeCallback ,
110108 $ parserNodes ,
111- $ ignoreErrorExtensions ,
109+ $ this -> ignoreErrorExtensionProvider -> getExtensions () ,
112110 $ this ->parser ,
113111 $ this ->dependencyResolver ,
114112 $ this ->ruleErrorTransformer ,
115- $ linesToIgnore ,
116- $ unmatchedLineIgnores ,
117113 $ processedFiles ,
118114 );
119115 $ scope = $ this ->scopeFactory ->create (ScopeContext::create ($ file ), $ nodeCallback );
@@ -213,20 +209,6 @@ public function analyseFile(
213209 );
214210 }
215211
216- /**
217- * @param Node[] $nodes
218- * @return array<int, non-empty-list<string>|null>
219- */
220- private function getLinesToIgnoreFromTokens (array $ nodes ): array
221- {
222- if (!isset ($ nodes [0 ])) {
223- return [];
224- }
225-
226- /** @var array<int, non-empty-list<string>|null> */
227- return $ nodes [0 ]->getAttribute ('linesToIgnore ' , []);
228- }
229-
230212 /**
231213 * @param array<string, true> $analysedFiles
232214 */
0 commit comments