Skip to content

Commit

Permalink
Avoid use of constant in trait
Browse files Browse the repository at this point in the history
This is to support old versions of PHP.
  • Loading branch information
fredden committed Jul 3, 2023
1 parent 9c2ac84 commit c115001
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Magento2/Sniffs/Legacy/ParseXMLTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

trait ParseXMLTrait
{
private const ERROR_CODE_XML = 'WrongXML';

/**
* Format the incoming XML to avoid tags split into several lines.
*
Expand All @@ -33,7 +31,7 @@ private function getFormattedXML(File $phpcsFile)
$phpcsFile->addError(
"Couldn't parse contents of '%s', check that they are in valid XML format.",
0,
self::ERROR_CODE_XML,
'WrongXML',
[
Common::stripBasepath($phpcsFile->getFilename(), $phpcsFile->config->basepath),
]
Expand Down

0 comments on commit c115001

Please sign in to comment.