Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Both getHtml5DateFormat
and getHtml5TimeFormat
in class Drupal\Core\Datetime\Element\Datetime
have Type string
for input parameter $element
, this should be array
.
Comment | File | Size | Author |
---|---|---|---|
#2 | incorrect_type_phpdoc_getHtml5DateFormat_getHtml5TimeFormat-3075661-2.patch | 848 bytes | Spokje |
Comments
Comment #2
SpokjeAttached patch fixes the wrongly typed input variable $element in both functions.
Comment #3
SpokjeComment #4
idebr CreditAttribution: idebr at ezCompany commentedPatch in #2 correctly fixes the docblocks, thanks @Spokje
Comment #6
larowlan