PHP 8.2 Partially supported callables are deprecated

Created on 1 March 2023, over 1 year ago
Updated 4 December 2023, 7 months ago

Problem/Motivation

Received this deprecation warning after running static analysis using Phan

web/modules/contrib/matomo/src/Form/MatomoAdminSettingsForm.php:771 PhanDeprecatedPartiallySupportedCallable 
Saw deprecated partially supported callable static::containsForbiddenToken. 
This was deprecated in PHP 8.2 and behaves inconsistently and can be called with call_user_func but not $callable() and the referenced class depends on context at call time. In some cases, [static::class, 'containsForbiddenToken'] can be used instead.
🐛 Bug report
Status

Needs review

Version

1.21

Component

Code

Created by

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