Problem/Motivation
PHP 8.4 deprecated implicitly defining parameters as null ie (Request $request = NULL).
2.0.x-dev has fixed this in the main code but one remains in the language_cookie_test module.
Steps to reproduce
Install the phpcompatibility standard for phpcs:
composer require phpcompatibility/php-compatibility
Run phpcs with the phpcompatibility standard against 8.4:
vendor/bin/phpcs -p --standard=PHPCompatibility --runtime-set testVersion 8.4 -d memory_limit=-1
Note deprecation.
Proposed resolution
Explicitly define the parameter as nullable, ie `(?Request $request = NULL)`
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork language_cookie-3567354
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 #2
cchiste commentedComment #3
cchiste commentedComment #6
jeroentMerged to 2.0.x. Thanks!