Implicitly nullable parameters are deprecated.
public function buildForm(array $form, FormStateInterface $form_state, EntityInterface $entity = NULL, $field_name = NULL) {
Active
1.0
Code