Skip to content

Commit c115001

Browse files
committed
Avoid use of constant in trait
This is to support old versions of PHP.
1 parent 9c2ac84 commit c115001

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Magento2/Sniffs/Legacy/ParseXMLTrait.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414
trait ParseXMLTrait
1515
{
16-
private const ERROR_CODE_XML = 'WrongXML';
17-
1816
/**
1917
* Format the incoming XML to avoid tags split into several lines.
2018
*
@@ -33,7 +31,7 @@ private function getFormattedXML(File $phpcsFile)
3331
$phpcsFile->addError(
3432
"Couldn't parse contents of '%s', check that they are in valid XML format.",
3533
0,
36-
self::ERROR_CODE_XML,
34+
'WrongXML',
3735
[
3836
Common::stripBasepath($phpcsFile->getFilename(), $phpcsFile->config->basepath),
3937
]

0 commit comments

Comments
 (0)