Problem/Motivation
See #3483037: [META] Add return types to hook implementations
Steps to reproduce
Find all occurrences in the baseline:
grep "Function .*_form_.*_alter\\\\.* has no return type specified" core/.phpstan-baseline.php
Proposed resolution
Add : void to each of them.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3483065-nr-bot.txt | 90 bytes | needs-review-queue-bot |
Issue fork drupal-3483065
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- hook-form-alter
changes, plain diff MR !9931
Comments
Comment #3
mstrelan commentedComment #4
smustgrave commentedSeems straight forward. Applied the MR and did a search for those functions and believe all have been hit.
Comment #5
quietone commentedApplied the diff then searched using the grep in the IS and that these have not been changed. Why is that?
Comment #6
mstrelan commentedNone of the functions in #5 are form alters, but their names are similar to form alters. For example some of them implement
hook_entity_form_display_alterand others have the word "form" in the module name and alter some other hook.Comment #7
nicxvan commentedTook a look and can confirm the identified errors are not form alters.
Comment #8
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #9
nicxvan commentedComment #10
godotislateRebase in baseline looks fine, and tests are green.
Comment #11
nicxvan commentedOk, gotta rebase again, the entity type alter just got in
Comment #12
godotislateRebased baseline still looks good, leaving in RTBC.
Comment #15
catchCommitted/pushed to 11.x and cherry-picked to 11.1.x, thanks!