\Drupal\Core\Extension\ModuleHandlerInterface::invoke() and \Drupal\Core\Extension\ModuleHandlerInterface::invokeAll() document that their second arguments must be arrays, but there is no type hinting. Lack of this caused #2170989: Migrate provides invalid arguments when invoking hooks to remain unnoticed, for instance.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | drupal_2170991_5.patch | 3.03 KB | xano |
Comments
Comment #1
xanoComment #2
xanoFor the record: this depends on #2170989: Migrate provides invalid arguments when invoking hooks being fixed first.
Comment #3
xanoComment #6
xanoFixed some of the failures.
Comment #7
xanoComment #8
chx commentedGood catch.
Comment #9
webchickSince this is just changing type-hinting and fixing a typo, I don't think we need tests for this.
Committed and pushed to 8.x. Thanks!