Problem/Motivation
The Symfony method Request::setTrustedHosts() is a static method, we use it as non-static in
DrupalKernel::setupTrustedHosts(). The method is static in Symfony 4 and Symfony 6.
Proposed resolution
Change $request->setTrustedHosts($host_patterns); to $request::setTrustedHosts($host_patterns);
Remaining tasks
TBD
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
None
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3276939-3.patch | 608 bytes | aziza_a |
| #2 | 3276939-2.patch | 614 bytes | daffie |
Comments
Comment #2
daffie commentedThe fix.
Comment #4
ameymudras commentedComment #6
smustgrave commentedGoing to leave the tests tag for the committers to decide.
This seems more like a code cleanup vs a bug though.
Comment #7
larowlanShouldn't this just be Request::setTrustedHosts then?
Comment #8
aziza_a commentedUpdated patch as per #7 comment
Comment #9
aziza_a commentedComment #10
daffie commentedLooks good to me.
Comment #12
larowlanCommitted to 10.1.x and cherry-picked back to 9.5.x as the risk of disruption is low
Comment #15
larowlan