2024-09-26 (4 commits)

2024-09-27

Overview

A fix for the theme layer, a new constraint validator for file encoding, along use in locale for gettext po files, and some extra fixes.

Changes

It covers commits from 2024-09-26 on 11.x branch.

#3473214: Stop passing ints to DateTimePlus::createFromFormat and DrupalDateTime::createFromFormat

#3473214 - aeef5cd62bebcc4e83172d9c7546d05242fad679

Improves usage of DateTimePlus::createFromFormat() to be more strict around the type of passed parameters.

#3471949: Allow passing MarkupInterface to AssertContentTrait::setRawContent

#3471949 - 766177302efbf16c0d1623805b23f38c7931e233

Improves AssertContentTrait::setRawContent() documentation, to allow phpstan to know a \Stringable can also be used.

#1630568: Validate that uploaded .po files are UTF8

#1630568 - a61ad6764e940ef63444528732fd77537ddcc58f

Adds extra validation for gettext po files to ensure its encoding is UTF-8.

Adds a new related constraint validator that check file encoding.

#3457863: YAML discovery does not take theme inheritance into account

#3457863 - 5e0ff5a872f4682bdef93ccb05fd3e4ecb696f46

Teaches YAML discovery about theme inheritance.

Annex

Meta

The set

$ git log --oneline --reverse --since=2024-09-25T23:59:59+00:00 --until=2024-09-27T00:00:00+00:00
5e0ff5a872 Issue #3457863 by grimreaper, catch, pdureau, maboy, longwave: YAML discovery does not take theme inheritance into account
a61ad6764e Issue #1630568 by sokru, Laureatus, quietone, smustgrave, ravi.shankar: Validate that uploaded .po files are UTF8
766177302e Issue #3471949 by mstrelan: Allow passing MarkupInterface to AssertContentTrait::setRawContent
aeef5cd62b Issue #3473214 by mstrelan: Stop passing ints to DateTimePlus::createFromFormat and DrupalDateTime::createFromFormat

$ git diff --shortstat 5e0ff5a872~1..aeef5cd62b
 15 files changed, 337 insertions(+), 31 deletions(-)