- Issue created by @joelpittet
- @joelpittet opened merge request.
- π¨π¦Canada joelpittet Vancouver
- Accessing argFormat via a getter method:
β’ The code now checks if the getArgFormat() method exists using method_exists(). This ensures compatibility with the patch in issue #2325899 while maintaining backward compatibility if the patch isnβt applied.
- Providing default values for other date argument classes:
β’ The method includes specific cases for additional date classes, such as WeekDate, MonthDate, and DayDate, providing appropriate formats for these cases.
β’ It adds a sensible default ('Y-m-d') for any unhandled cases, ensuring that the method will always return a valid date format.
- Accessing argFormat via a getter method:
- π¨π¦Canada joelpittet Vancouver
This looks great, thanks @ramil g. I will drop Drupal 9 support because they technically need PHP 7 support and the match statement isn't available until PHP 8.0.0
-
joelpittet β
committed 40d51b72 on 8.x-1.x
Issue #3488505 by joelpittet: Fix DateArgumentWrapper::getArgFormat() to...
-
joelpittet β
committed 40d51b72 on 8.x-1.x
Automatically closed - issue fixed for 2 weeks with no activity.