Add array return type to all hook_removed_post_updates implementations

Created on 24 October 2024, about 2 months ago

Problem/Motivation

See πŸ“Œ [META] Add return types to hook implementations Active

Steps to reproduce

Find all occurrences in the baseline:

grep "Function .*_removed_post_updates\\\\.* has no return type specified" core/.phpstan-baseline.php

Proposed resolution

Add : array to each of them.

This nifty command will find and replace all occurrences that come shortly after "Implements hook_theme()":
find . -type f -exec sed -i '/Implements hook_removed_post_updates()/,/\(function .*_removed_post_updates(.*)\) *{/!b;/\(function .*_removed_post_updates(.*)\) *{/s/\(function .*_removed_post_updates(.*)\) *{/\1: array {/' {} +

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

help.module

Created by

πŸ‡¦πŸ‡ΊAustralia mstrelan

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