[Form] Replace an with is

This commit is contained in:
Manuel de Ruiter 2011-11-12 00:57:14 +01:00
parent bb5fb79c3d
commit 970e2a2608

View File

@ -143,15 +143,15 @@ class DateTimeToArrayTransformer extends BaseDateTimeTransformer
}
if (isset($value['month']) && !ctype_digit($value['month'])) {
throw new TransformationFailedException('This month an invalid');
throw new TransformationFailedException('This month is invalid');
}
if (isset($value['day']) && !ctype_digit($value['day'])) {
throw new TransformationFailedException('This day an invalid');
throw new TransformationFailedException('This day is invalid');
}
if (isset($value['year']) && !ctype_digit($value['year'])) {
throw new TransformationFailedException('This year an invalid');
throw new TransformationFailedException('This year is invalid');
}
if (!empty($value['month']) && !empty($value['day']) && !empty($value['year']) && false === checkdate($value['month'], $value['day'], $value['year'])) {