Closed (fixed)
Project:
Webform
Version:
6.3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 May 2026 at 15:39 UTC
Updated:
20 Oct 2026 at 22:35 UTC
Jump to comment: Most recent
Comments
Comment #3
liam morlandThe merge request contains a bunch of fixes. There are still some "Using null as an array offset is deprecated" messages about
ViewsViewsHooks->viewsData(). I think those were fixed in #3347842: Deprecate the trusted data concept in configuration; see #3563306: Views views_data hook is not entirely PHP 8.5 ready.Comment #4
liam morlandAnother "Using null as an array offset" message has a fix in #3590967: [PHP 8.5] ContentTranslationManageAccessCheck passes NULL to LanguageManager::getLanguage().
Comment #19
liam morlandFixes committed; leaving open until tests pass on PHP 8.5. The rest of the fixes are likely in Drupal core; see comment #3 and #4.
Comment #20
flemming.fridthjof commentedFound two more places, within the module, where the deprecation warning is given.
Occurs when "$value" is NULL which is possible from the "getRawValue()" call.
https://git.drupalcode.org/project/webform/-/blob/6.3.x/src/Plugin/Webfo...
Occurs when "$element['format']['format']['#default_value']" is not set, which is the case if the user does not have access to the format.
https://git.drupalcode.org/project/webform/-/blob/6.3.x/src/Element/Webf...
Comment #21
liam morlandThanks. A fix would be appreciated. You can make a new branch on the same issue fork and create a new merge request.
Comment #23
liam morlandThis merge request addresses the issues raised in #20 plus others. There is one failure left, #3590967: [PHP 8.5] ContentTranslationManageAccessCheck passes NULL to LanguageManager::getLanguage().
Comment #24
flemming.fridthjof commentedThe fix in #3590967: [PHP 8.5] ContentTranslationManageAccessCheck passes NULL to LanguageManager::getLanguage() does not fix the deprecation warning
Deprecated function: Using null as an array offset is deprecated, use an empty string instead in Drupal\Core\Language\LanguageManager->getLanguage() (line 157 of core/lib/Drupal/Core/Language/LanguageManager.php).on "/admin/structure/webform/manage/<webform-id>/translate".The fix #3590967: [PHP 8.5] ContentTranslationManageAccessCheck passes NULL to LanguageManager::getLanguage() tries to resolve a similar issue in "core/modules/content_translation/src/Access/ContentTranslationManageAccessCheck.php"
The root issue for webform originates from includes/webform.theme.inc line 173-174 (version 6.3.1)
If $langcode is null it properly should not be passed to
languageManager()->getLanguage()Comment #25
liam morlandThanks, @flemming.fridthjof. The tests are now passing on PHP 8.5 in the merge request. Please review.
Comment #26
flemming.fridthjof commentedI've reviewed the changes and all looks good. Great work.
Comment #39
liam morland