JsonLogTest deprecation with PHPUnit version 10

Created on 30 August 2024, 3 months ago

Problem/Motivation

Running the unit test JsonLogTest.php produces an additional deprecation running PHPUnit version 10:

Test Triggered PHPUnit Deprecation (Drupal\Tests\jsonlog\Unit\JsonLogTest::testLogChannelFilter)
Data Provider method Drupal\Tests\jsonlog\Unit\JsonLogTest::logChannelFilterProvider() is not static

Steps to reproduce

Run jsonlog/tests/src/Unit/JsonLogTest.php with PHPUnit Version 10 on Drupal 11

Proposed resolution

Easy fix to make the function static.
Does not introduce a deprecation.
Also good to remove unused use statements.

Remaining tasks

X Create issue fork
X Create Merge Request
- Test
- Merge into 4.x-dev

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States scott_earnest

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024