Skip to content

Commit

Permalink
FRW-7901 Fixed error message. (#11102)
Browse files Browse the repository at this point in the history
FRW-7901 Fixed error message.
  • Loading branch information
spryker-release-bot authored Sep 17, 2024
1 parent a32c07f commit 52654a9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,11 @@ protected function validateAttribute(SimpleXMLElement $toXmlElement, string $key
$toXmlAttributes = iterator_to_array($toXmlElement->attributes());

if ($this->isAttributeValueChange($toXmlAttributes, $key, $value) && !$this->isWhiteListed($fileName, $key)) {
$xmlElementName = $toXmlElement['name'] ?? '';
$this->addError(sprintf(
'The attribute "%s" in one of your "%s" files has currently "%s" as value, if you would run the schema merger, this value would be overwritten with "%s". This can have weird side effects!',
'The attribute "%s" in the element "%s" in one of your "%s" files has currently "%s" as value, if you would run the schema merger, this value would be overwritten with "%s". This can have weird side effects!',
$key,
(string)$xmlElementName,
$fileName,
(string)$toXmlAttributes[$key],
$value,
Expand Down

0 comments on commit 52654a9

Please sign in to comment.