Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
PHPUnit\Framework\Exception: PHP Deprecated: Required parameter $expected follows optional parameter $langcode in /var/www/html/modules/contrib/pathauto/tests/src/Functional/PathautoTestHelperTrait.php on line 172
Proposed resolution
Make $langcode required. I could only find one occurrence of the assertion call, and already defined the $langcode parameter.
Remaining tasks
Commit.
User interface changes
None
API changes
Only for tests using the PathautoTestHelperTrait::assertEntityPattern()
method.
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#2 | 3187744-pathauto-PathautoTestHelperTrait-fix-php8-2.patch | 589 bytes | penyaskito |
Comments
Comment #2
penyaskitoMake $langcode required. I could only find one occurrence of the assertion call, and already defined the $langcode parameter.
Comment #3
penyaskitoI'm guessing HEAD broken should be critical, but as it's only in php8 marking as major.
Comment #4
BerdirThanks, committed.