Problem/Motivation

Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationSession->processOutbound()() (Line: 127) causes deprecation in PHP 8.5,

Steps to reproduce

Run \Drupal\Tests\system\Functional\Update\EntityFormModeUpdatePathTest

Proposed resolution

Refactor code so that NULL is not used as an array key.

Remaining tasks

User interface changes

None

Introduced terminology

N/a

API changes

None

Data model changes

None

Release notes snippet

N/a

Issue fork drupal-3557525

Command icon 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:

Comments

alexpott created an issue. See original summary.

alexpott’s picture

Status: Active » Needs review

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Ran locally with 8.5.0RC3

Oddly enough I get a failure Exception: Deprecated function: Using null as an array offset is deprecated, use an empty string instead
Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationSession->processOutbound()() (Line: 127)

With the MR it passes and have 0 deprecations

LGTM

  • catch committed 15639f3e on 11.x
    fix: #3557525 Fix PHP 8.5 deprecations triggered in Drupal\language\...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 11.x and cherry-picked to 11.3.x, thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • alexpott committed f3b06df7 on 11.3.x authored by catch
    fix: #3557525 Fix PHP 8.5 deprecations triggered in Drupal\language\...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.