Skip to content

Commit 1338211

Browse files
committed
Merge branch 'AC-663_phpcs-ClassesTest' of github.com:svera/magento-coding-standard into AC-663_phpcs-ClassesTest
2 parents 8402f7d + 39267ba commit 1338211

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
@@ -111,7 +111,7 @@ private function getFormattedXML(File $phpcsFile)
111111
{
112112
$doc = new DomDocument('1.0');
113113
$doc->formatOutput = true;
114-
$doc->loadXML($phpcsFile->getTokensAsString(0, 999999));
114+
$doc->loadXML($phpcsFile->getTokensAsString(0, count($phpcsFile->getTokens())));
115115
return $doc->saveXML();
116116
}
117117

0 commit comments

Comments
 (0)