Add return types to hook_update_N implementations

Created on 1 December 2024, 4 months ago

Problem/Motivation

See 📌 [META] Add return types to hook implementations Active

Steps to reproduce

grep -P "Function [a-zA-Z0-9_]+_update_\\d+\\\\\\\\\(\\\\\\\\\) has no return type specified" core/.phpstan-baseline.php

Proposed resolution

Add return type to the 44 functions listed in steps to reproduce. Many of these are void, some are string, some may be MarkupInterface or TranslatableMarkup.

Add return type to hook_update_N example in module.api.php

Update phpstan baseline

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component

update.module

Created by

🇦🇺Australia mstrelan

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024