Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Oct 2023 at 20:53 UTC
Updated:
24 Jul 2026 at 14:43 UTC
Jump to comment: Most recent
Comments
Comment #3
joelpittetComment #5
tibezh commentedLooks good.
The patch covers really important things to support PHP 8.1 on D7.
Comment #6
joelpittetComment #7
poker10 commentedI think this looks good. This code
in PHP 8.3, 8.2, 8.1 results in:
and in PHP 7.4, 7.3 and lower in:
So by casting to string we will keep the same behavior of this function - an empty string will be returned without a deprecation message.
I have added a NULL value to the existing tests. Seems like all pipelines are green (https://git.drupalcode.org/project/drupal/-/pipelines/59079), so adding a tag for the final review. Here is a test-only test which failed as expected: https://git.drupalcode.org/project/drupal/-/jobs/434910. Thanks.
Comment #8
fabianx commentedRTBC
Comment #10
mcdruid commentedThanks everybody!