Problem/Motivation
In \Drupal\Core\Config\Entity\Query\Condition we process $condition['value'] when it is NULL. 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 'NULL' values
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
N/a
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 3301613-10.diff | 774 bytes | j_s |
Issue fork drupal-3301613
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3301613-only-process-values
changes, plain diff MR !2585
Comments
Comment #2
froboyI've seen this with the following condition:
which seems to be coming from a custom migration attempting to be imported by `config_devel`. The warning thrown is:
It's possible that something is broken upstream, but looking at the logic here it still seems like we should prevent a NULL value from being processed.
Comment #6
j_s commentedThe change in MR!2585 fixes the error for me. Thanks!
Comment #7
socialnicheguru commentedif you goto /admin/module
enable a module with dependencies
when you click on the button the first time it will show you the dependencies
on that page is a button to install
when you click on it, you are taken to the admin/module page and nothing has happened. no modules were enabled
Comment #8
kolesnikoff commentedComment #9
smustgrave commentedPer #7
Also will probably need a test case to cover this change.
Comment #10
j_s commentedAttached static diff from the current MR!2585.