PHP 8.3 Deprecated function: Use of "self" in callables is deprecated

Created on 25 June 2024, 7 months ago
Updated 15 July 2024, 6 months ago

Problem/Motivation

The following warning arose:
Deprecated function: Use of "self" in callables is deprecated in Drupal| typogrify|Typogrify::initia/Quotes) (line 168 of /var/core/www/modules/contrib/typogrify/src/Typogrify.php).

Steps to reproduce

Update project to PHP 8.3 version.

Proposed resolution

Change 'self::quoteWrapper' to [static::class, 'quoteWrapper'] to ensure that if this method is used in a subclass, it will correctly reference the subclass.

๐Ÿ“Œ Task
Status

Closed: works as designed

Version

1.3

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ฆUkraine v.dovhaliuk

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

Comments & Activities

Production build 0.71.5 2024