Issue #3204518 by stefan.korn: Change type hints in inline_entity_form.api.php to align with Drupal core