Skip to content

Commit 39267ba

Browse files
sverasivaschenko
andauthored
Update Magento2/Sniffs/Legacy/ClassReferencesInConfigurationFilesSniff.php
Co-authored-by: Sergii Ivashchenko <serg.ivashchenko@gmail.com>
1 parent 36776b8 commit 39267ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Magento2/Sniffs/Legacy/ClassReferencesInConfigurationFilesSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ private function getFormattedXML(File $phpcsFile)
114114
{
115115
$doc = new DomDocument('1.0');
116116
$doc->formatOutput = true;
117-
$doc->loadXML($phpcsFile->getTokensAsString(0, 999999));
117+
$doc->loadXML($phpcsFile->getTokensAsString(0, count($phpcsFile->getTokens())));
118118
return $doc->saveXML();
119119
}
120120

0 commit comments

Comments
 (0)