Problem/Motivation

When GitLab CI executes the phpunit job, the following error is reported in the log.

PHP Fatal error: Declaration of Drupal\Tests\user_restrictions\Functional\UserRestrictionsTestBase::setUp() must be compatible with Drupal\Tests\BrowserTestBase::setUp(): void in /builds/project/user_restrictions/tests/src/Functional/UserRestrictionsTestBase.php on line 35

Proposed resolution

Add the return type hinting to Drupal\Tests\user_restrictions\Functional\UserRestrictionsTestBase::setUp() (void).

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

avpaderno created an issue. See original summary.

avpaderno’s picture

Status: Active » Needs review

  • avpaderno committed ae1d6c36 on 2.0.x
    Issue #3547283: The declaration of UserRestrictionsTestBase::setUp() is...
avpaderno’s picture

Assigned: avpaderno » Unassigned
Status: Needs review » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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