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\system\Tests\System\UncaughtExceptionTest fails on php7.1 - see https://dispatcher.drupalci.org/job/drupalci_test_containers/730/testRep...
exception: [ArgumentCountError] Line 12 of core/modules/system/tests/modules/error_service_test/src/LonelyMonkeyClass.php:
Too few arguments to function Drupal\error_service_test\LonelyMonkeyClass::__construct(), 0 passed in /var/www/html/core/lib/Drupal/Component/DependencyInjection/Container.php on line 264 and exactly 1 expected
Likely to be a change to how errors are handled in PHP 7.1.
Proposed resolution
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#3 | 2842982-2.patch | 1.13 KB | alexpott |
Comments
Comment #2
alexpottThis is happening because of https://wiki.php.net/rfc/too_few_args which was implemented in PHP 7.1
Comment #3
alexpottComment #4
catchLooks great.
Comment #6
alexpotthttps://www.drupal.org/pift-ci-job/571518 is an unrelated test fail imo.
Comment #9
catchCommitted/pushed to 8.3.x and cherry-picked to 8.2.x. Thanks!