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.
Documentation recommends using Closures in hook_libraries_info() - https://www.drupal.org/node/1976234
But current code produces fatal while trying this because LibrariesFinderPlugin::buildLibrariesXautoloadInfo() contains serialize().
Attached patch resolves the issue.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2681577_serialie_closure_fatal_2.patch | 533 bytes | dmitry.kazberovich |
Comments
Comment #2
dmitry.kazberovichComment #3
donquixote CreditAttribution: donquixote as a volunteer commentedOops.. what the hell is this serialize() even doing there?
Looks like a leftover from something. Should be safe to remove.
I wonder if we can unit-test this stuff.
Comment #5
donquixote CreditAttribution: donquixote as a volunteer commentedFixed in 7.x-5.6 (wait for packaging script)
Comment #6
donquixote CreditAttribution: donquixote as a volunteer commented