PHP 8.2 Partially supported callables are deprecated

Created on 1 March 2023, over 1 year ago
Updated 14 March 2023, over 1 year ago

Problem/Motivation

Received this deprecation warning after running static analysis on version 4.0.2 using Phan

web/modules/contrib/google_analytics/src/Form/GoogleAnalyticsAdminSettingsForm.php:888 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

4.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024