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.
The description for the return value of ModuleHandler::invokeAll()
contains the following warning.
Note: integer keys in arrays will be lost, as the merge is done using array_merge_recursive().
The warning is true, but array_merge_recursive()
is not used anymore. The warning should be the following one.
Note: integer keys in arrays will be lost, as the merge is done using Drupal\Component\Utility\NestedArray::mergeDeepArray().
Comment | File | Size | Author |
---|---|---|---|
#3 | moduleHandler-invokeAll-return-type-correction-3110620.patch | 1.35 KB | salah1 |
Comments
Comment #2
salah1Comment #3
salah1I had few minutes and done this one. Thanks for catching the return type issue.
Comment #4
salah1Comment #5
xjmNice work!
As a docs fix, this is eligible for backport to the bugfix version, so filing against 8.8.x. Thanks!
Comment #6
xjmBTW, the RTBC in #5 was intentional, which I should have stated explicitly. :) I looked at other mentions of
array_merge_recursive()
and they were all actual calls to that function, or (in one case) the docs ofNestedArray::mergeDeepArray()
itself.Comment #9
catchCommitted/pushed to 9.1.x and cherry-picked back to 8.8.x, thanks!
Comment #12
catchComment #13
catch