Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
\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 CreditAttribution: 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!