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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

penyaskito created an issue. See original summary.

penyaskito’s picture

Make $langcode required. I could only find one occurrence of the assertion call, and already defined the $langcode parameter.

penyaskito’s picture

Priority: Normal » Major

I'm guessing HEAD broken should be critical, but as it's only in php8 marking as major.

Berdir’s picture

Status: Needs review » Fixed

Thanks, committed.

  • Berdir committed 43c8079 on 8.x-1.x authored by penyaskito
    Issue #3187744 by penyaskito: PathautoTestHelperTrait deprecation with...

Status: Fixed » Closed (fixed)

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