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
In \Drupal\Core\Config\Entity\Query\Condition we process $condition['value']
for operators that do not have $condition['value']
. This results in deprecation errors in PHP 8.1 because we pass NULLs to functions that only support strings.
Proposed resolution
Don't call this code for 'IS NULL' and 'IS NOT NULL' operators
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
N/a
Comment | File | Size | Author |
---|---|---|---|
#2 | 3232695-2.patch | 1.28 KB | alexpott |
Comments
Comment #2
alexpottWe can only really have test coverage of this once we have testing on PHP 8.1
Comment #4
alexpott#3 was due to a random fail in one of the usual JS tests...
Comment #5
daffie CreditAttribution: daffie commentedLooks good to me.
Comment #7
catchNice that some of these are finding actual logic issues.
Committed bd90218 and pushed to 9.3.x. Thanks!