The expression \DateTime::createFromFor...s->dateFormat, $value); of type DateTime|false adds false to the return on line 40 which is incompatible with the return type documented by Del\Form\Field\Transform...TimeTransformer::output of type DateTime. It seems like you forgot to handle an error condition.