Add void return type to all *_alter hook implementations

Created on 15 November 2024, 5 months ago

Problem/Motivation

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

Steps to reproduce

Find all occurrences in the baseline:

grep "Method .*\\:.*Alter\\\\.* has no return type specified" core/.phpstan-baseline.php

Proposed resolution

Add : void to each of them.

Updated command for use in Hooks classes.
find . -type f -path "*/src/Hook/*.php" -exec sed -i "/#\[Hook('.*_alter')\]/ {N;s/\(public function \w*([^)]*)\) *{/\\1: void {/}" {} +

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

base system

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