Only process values in config entity query conditions for values that have values

Created on 3 August 2022, almost 2 years ago
Updated 5 March 2024, 3 months ago

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

πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
Configuration entityΒ  β†’

Last updated 26 minutes ago

Created by

πŸ‡ΊπŸ‡ΈUnited States froboy Chicago, IL

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States joshuasosa

    The change in MR!2585 fixes the error for me. Thanks!

  • Status changed to Needs work 5 months ago
  • πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

    if 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

  • Status changed to Needs review 4 months ago
  • Status changed to Needs work 3 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Per #7

    Also will probably need a test case to cover this change.

Production build 0.69.0 2024