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
\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
Comment | File | Size | Author |
---|---|---|---|
#2 | 3240185-2.patch | 908 bytes | alexpott |
Comments
Comment #2
alexpottHere's the fix from the meta.
Comment #3
daffie CreditAttribution: daffie commentedThe second parameter and up as the first parameter in the function
preg_quote()
and that must be a string value.Looks good to me.
Comment #5
catchCommitted 97a0dec and pushed to 9.3.x. Thanks!