Warning: Private methods cannot be final as they are never overridden

Created on 21 February 2024, 4 months ago
Updated 22 February 2024, 4 months ago

Problem/Motivation

When executing Simpletests all test files are scanned and then this PHP warnings shows up:
Warning: Private methods cannot be final as they are never overridden by other classes in redis/lib/Redis/Tests/AbstractUnitTestCase.php on line 56

Steps to reproduce

Execute any Simpletest.

Proposed resolution

Remove final keyword.

Remaining tasks

Patch

πŸ› Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria klausi πŸ‡¦πŸ‡Ή Vienna

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024