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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dmitry.kazberovich created an issue. See original summary.

dmitry.kazberovich’s picture

donquixote’s picture

Oops.. 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.

donquixote’s picture

Fixed in 7.x-5.6 (wait for packaging script)

donquixote’s picture

Status: Active » Closed (fixed)