Both getHtml5DateFormat and getHtml5TimeFormatin class Drupal\Core\Datetime\Element\Datetime have Type string for input parameter $element, this should be array.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Spokje created an issue. See original summary.

Spokje’s picture

Attached patch fixes the wrongly typed input variable $element in both functions.

Spokje’s picture

Assigned: Spokje » Unassigned
Status: Active » Needs review
idebr’s picture

Status: Needs review » Reviewed & tested by the community

Patch in #2 correctly fixes the docblocks, thanks @Spokje

  • larowlan committed 1b07788 on 8.8.x
    Issue #3075661 by Spokje: getHtml5DateFormat and getHtml5TimeFormat in...
larowlan’s picture

Version: 8.8.x-dev » 8.7.x-dev
Status: Reviewed & tested by the community » Fixed

  • larowlan committed 32b6f79 on 8.7.x
    Issue #3075661 by Spokje: getHtml5DateFormat and getHtml5TimeFormat in...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.