Add int return type to all hook_update_last_removed implementations

Created on 24 October 2024, 9 months ago

Problem/Motivation

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

Steps to reproduce

Find all occurrences in the baseline:

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

Proposed resolution

Add : int to each of them.

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

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component

other

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