cs: Second part - ignore test/app subdirectory.

This commit is contained in:
Pol Dellaiera
2021-11-23 14:34:34 +01:00
parent 5f37304796
commit 3ea35682eb
72 changed files with 326 additions and 365 deletions

View File

@@ -45,14 +45,14 @@ class Configuration implements ConfigurationInterface
->defaultValue('P1D')
->validate()
->ifTrue(function ($period) {
try {
$interval = new DateInterval($period);
} catch (Exception $ex) {
return true;
}
try {
$interval = new DateInterval($period);
} catch (Exception $ex) {
return true;
}
return false;
})
return false;
})
->thenInvalid('Invalid period for birthdate validation : "%s" '
. 'The parameter should match duration as defined by ISO8601 : '
. 'https://en.wikipedia.org/wiki/ISO_8601#Durations')