mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
fix sf3 depreciated addViolationAt() method
cfr vendor/symfony/symfony/UPGRADE-3.0.md:1719
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user