ImportSource: use sprintf() for InvalidArgumentEx

fixes #1810
This commit is contained in:
Thomas Gelf 2019-03-25 08:33:41 +01:00
parent 70dfc9dae9
commit 2aea3ad966
1 changed files with 2 additions and 2 deletions

View File

@ -322,10 +322,10 @@ class ImportSource extends DbObjectWithSettings implements ExportInterface
$target = $modifier->getTargetProperty($key);
if (strpos($target, '.') !== false) {
throw new InvalidArgumentException(
throw new InvalidArgumentException(sprintf(
'Cannot set value for nested key "%s"',
$target
);
));
}
if (is_array($value) && ! $modifier->hasArraySupport()) {