Problem/Motivation
See #3483037: [META] Add return types to hook implementations
Steps to reproduce
Find all occurrences in the baseline:
grep "Method .*cron\\\\.* 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('cron')\]/ {N;s/\(public function \w*()\)/\1: void/}" {} +