Add void return type to all hook_entity_type_alter implementations

Created on 29 October 2024, about 1 month ago

Problem/Motivation

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

Steps to reproduce

Find all occurrences in the baseline:

grep "Function .*_entity_type_alter\\\\.* 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_entity_type_alter()":
find . -type f -exec sed -i '/Implements hook_entity_type_alter()/,/\(function .*_entity_type_alter(.*)\) *{/!b;/\(function .*_entity_type_alter(.*)\) *{/s/\(function .*_entity_type_alter(.*)\) *{/\1: void {/' {} +

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

entity 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