WebformViewsTestBase::setup() must be compatible with KernelTestBase::setup: void

Created on 18 January 2024, 5 months ago
Updated 1 March 2024, 4 months ago

Problem/Motivation

When attempting to run phpunit in Drupal 10.2, I get

PHP Fatal error: Declaration of Drupal\Tests\webform_views\Kernel\WebformViewsTestBase::setUp() must be compatible with Drupal\KernelTests\KernelTestBase::setUp(): void in /app/web/modules/contrib/webform_views/tests/src/Kernel/WebformViewsTestBase.php on line 80

Steps to reproduce

Install phpunit as described at https://www.drupal.org/docs/automated-testing/phpunit-in-drupal/running-... β†’ . Run it.

Proposed resolution

Define the setUp function as void so it is compatible with the base class.

Remaining tasks

make a fork

πŸ› Bug report
Status

Needs review

Version

5.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States BenStallings

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024