Problem/Motivation

\Drupal\Tests\field\Functional\FieldDefaultValueCallbackTest fails on PHP 8.1 due to deprecations.

Steps to reproduce

Run \Drupal\Tests\field\Functional\FieldDefaultValueCallbackTest on PHP 8.1

Proposed resolution

Fix the test.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
#2 3240185-2.patch908 bytesalexpott
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alexpott created an issue. See original summary.

alexpott’s picture

Status: Active » Needs review
FileSize
908 bytes

Here's the fix from the meta.

daffie’s picture

Status: Needs review » Reviewed & tested by the community

The second parameter and up as the first parameter in the function preg_quote() and that must be a string value.
Looks good to me.

  • catch committed 97a0dec on 9.3.x
    Issue #3240185 by alexpott: \Drupal\Tests\field\Functional\...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed 97a0dec and pushed to 9.3.x. Thanks!

Status: Fixed » Closed (fixed)

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