Fix trigger_error() in legacy Update Manager deprecations to use __FUNCTION__

Created on 8 May 2025, 4 days ago

Problem/Motivation

πŸ“Œ Deprecate authorize.php and the FileTransfer system Active deprecated a lot of procedural functions in the legacy "Update Manager". In particular, every function in update.manager.inc and update.authorize.inc, along with some others in system.module and includes/common.inc. However, I used:

@trigger_error(__METHOD__ . '() is deprecated in drupal:11.2.0 ...

even though these aren't methods at all.

Steps to reproduce

Proposed resolution

Use @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.2.0... for all deprecation messages in procedural functions.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component

update.module

Created by

πŸ‡ΊπŸ‡ΈUnited States dww

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024