Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
PHP 8.1 built-in string functions will trigger a deprecation error when a NULL is passed in. We often do this when getting something from the request headers.
Steps to reproduce
See test runs in #3220021: [meta] Ensure compatibility of Drupal 9 with PHP 8.1 (as it evolves)
Proposed resolution
Provide a better default value - ie. an empty string.
Remaining tasks
User interface changes
N/a
API changes
None
Data model changes
N/a
Release notes snippet
N/a
Comment | File | Size | Author |
---|---|---|---|
#2 | 3236284-2.patch | 2.94 KB | alexpott |
Comments
Comment #2
alexpottComment #3
daffie CreditAttribution: daffie commentedLooks good to me.
Comment #5
catchCommitted f601595 and pushed to 9.3.x. Thanks!