Skip to content

Commit

Permalink
ImportSource: use sprintf() for InvalidArgumentEx
Browse files Browse the repository at this point in the history
fixes #1810
  • Loading branch information
Thomas-Gelf committed Mar 25, 2019
1 parent 70dfc9d commit 2aea3ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Director/Objects/ImportSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,10 @@ protected function applyPropertyModifierToRow(PropertyModifierHook $modifier, $k

$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()) {
Expand Down

0 comments on commit 2aea3ad

Please sign in to comment.