Skip to content

Commit 2f6052f

Browse files
committedApr 1, 2022
AC-1655: Added return if not XML
1 parent 19344bd commit 2f6052f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎Magento2/Sniffs/Legacy/ModuleXMLSniff.php

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public function process(File $phpcsFile, $stackPtr)
5151
$stackPtr,
5252
self::ERROR_CODE
5353
);
54+
return;
5455
}
5556

5657
$foundElements = $xml->xpath('/config/module[@version]');

0 commit comments

Comments
 (0)
Please sign in to comment.