Add typehints to form block renderers
[MAILPOET-2665]
This commit is contained in:
committed by
Jack Kitterhing
parent
268fe0f2ad
commit
f959be13dd
@@ -115,7 +115,7 @@ class CustomField extends Model {
|
||||
break;
|
||||
}
|
||||
|
||||
if (!empty($value)) {
|
||||
if (!empty($value) && is_string($value)) {
|
||||
$value = (new DateConverter())->convertDateToDatetime($value, $dateFormat);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user