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

Created on 25 June 2024, 4 days 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

Needs work

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.69.0 2024