Skip to content

Commit

Permalink
Fix copy n pasta
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed Jun 30, 2023
1 parent 47d203d commit 79a60bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/midcom/datamanager/validation/callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ private function add_violation(array $path, ExecutionContextInterface $context,
{
if (is_string($data)) {
$context
->buildViolation('[' . implode('][', $path) . ']')
->atPath($path)
->buildViolation($data)
->atPath('[' . implode('][', $path) . ']')
->addViolation();
} else {
foreach ($data as $field => $message) {
Expand Down

0 comments on commit 79a60bc

Please sign in to comment.