diff --git a/src/Spryker/Zed/Propel/Business/Model/Schema/Validator/PropelSchemaValidator.php b/src/Spryker/Zed/Propel/Business/Model/Schema/Validator/PropelSchemaValidator.php index c54a86f..309b963 100644 --- a/src/Spryker/Zed/Propel/Business/Model/Schema/Validator/PropelSchemaValidator.php +++ b/src/Spryker/Zed/Propel/Business/Model/Schema/Validator/PropelSchemaValidator.php @@ -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,