Commit 15178989 authored by Côme Chilliet's avatar Côme Chilliet

🚑 fix(DateAttribute) Add comments to please sonar

issue #5931
parent 2d3101bd
......@@ -49,12 +49,14 @@ class DateAttribute extends Attribute
try {
$this->minDate = new DateTime($min, new DateTimeZone('UTC'));
} catch (Exception $e) {
// Failed to parse min date, ignore
}
}
if ($max !== NULL) {
try {
$this->maxDate = new DateTime($max, new DateTimeZone('UTC'));
} catch (Exception $e) {
// Failed to parse max date, ignore
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment