PHP 8: Deprecated: Optional parameter $language declared before required parameter $expected

Created on 1 December 2022, almost 2 years ago
Updated 24 May 2023, over 1 year ago

On PHP 8, I get the following error:

PHP Deprecated:  Optional parameter $language declared before required parameter $expected is implicitly treated as a required parameter in /var/www/drupal/sites/all/modules/contrib/pathauto/pathauto.test on line 112
πŸ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Ronino

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΈπŸ‡°Slovakia poker10

    I think the D7 patch is correct, as the next function where the $language parameter is send (pathauto_pattern_load_by_entity()) has the same default value. So the default value on this place can be ommitted.

Production build 0.71.5 2024