\Drupal\date_recur\DateRecurOccurrences occurrence generator sets time zone which causes internal data structure mutation on data range items.
DateRange should be immune to modification.
Should probably use DateTimeImmutable, but that would be an API change.. Interface allows this, but could break existing code if they ignored typehinting. This will be changed in a minor release.
For now, will instead date objects will be cloned on get call
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3136905-immutable-getters.patch | 2.23 KB | dpi |
| #3 | 3136905-immutable-getters-test-only.patch | 1.74 KB | dpi |
Comments
Comment #2
dpiComment #3
dpiComment #4
dpiComment #7
dpiComment #9
dpi