Closed (duplicate)
Project:
Drupal core
Version:
9.0.x-dev
Component:
system.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2020 at 06:04 UTC
Updated:
10 Feb 2020 at 17:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
hardik_patel_12 commentedKindly review a patch.
Comment #3
hardik_patel_12 commentedComment #4
hash6 commentedThanks @Hardik_Patel_12 Good Catch !!
Comment #5
hash6 commentedComment #6
alexpottThe typehint is correct. This does have to be a
\Drupal\Core\Datetime\DateFormatInterface- we call $entity->setPattern($value); on it in the method.We could add
assert($entity instanceof DateFormatInterface);to make this more explicit.Comment #7
alexpottActually this needs to be fixed to be part of #2723621: Fix Drupal.Commenting.FunctionComment.IncorrectTypeHint and Drupal.Commenting.FunctionComment.InvalidTypeHint