mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 06:48:50 +02:00
N°9319 increase php min. version to 8.2 (#887)
* Update minimum PHP version to 8.2 * Fix previous wrong resolution of merge conflict
This commit is contained in:
@@ -47,7 +47,9 @@ class RegexValidator extends ConstraintValidator
|
||||
$value = ($constraint->normalizer)($value);
|
||||
}
|
||||
|
||||
if ($constraint->match xor preg_match($constraint->pattern, $value)) {
|
||||
$expectedResult = $constraint->match ? 1 : 0;
|
||||
|
||||
if (preg_match($constraint->pattern, $value) !== $expectedResult) {
|
||||
$this->context->buildViolation($constraint->message)
|
||||
->setParameter('{{ value }}', $this->formatValue($value))
|
||||
->setParameter('{{ pattern }}', $constraint->pattern)
|
||||
|
||||
Reference in New Issue
Block a user