fix sf3 depreciated addViolationAt() method

cfr vendor/symfony/symfony/UPGRADE-3.0.md:1719
This commit is contained in:
Mat
2018-10-18 12:20:32 +02:00
parent 42e33c020c
commit 7dfbe88ce6
2 changed files with 9 additions and 9 deletions

View File

@@ -224,9 +224,9 @@ class AccompanyingPeriod
}
if (! $this->isClosingAfterOpening()) {
$context->addViolationAt('dateClosing',
'The date of closing is before the date of opening',
array(), null);
$context->buildViolation('The date of closing is before the date of opening')
->atPath('dateClosing')
->addViolation();
}
}