Problem/Motivation
On PHP 8.5 the \Drupal\language\Plugin\LanguageNegotiation\LanguageNegotiationContentEntity::getLangcode() method results in deprecations when $request->query->get(static::QUERY_PARAMETER); return NULL - i.e. the query parameter is not set.
Steps to reproduce
Run the unit tests on PHP 8.5 - \Drupal\Tests\language\Unit\Plugin\LanguageNegotiation\LanguageNegotiationContentEntityTest with produce a deprecation.
Proposed resolution
Fix code to not produce a deprecation.
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-3555823
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
Comment #3
alexpottComment #4
alexpottComment #5
smustgrave commentedSeems pretty straight forward.
Comment #9
catchCommitted/pushed to 11.x and cherry-picked to 11.3.x, thanks!