Use of PHP's create_function() has been deprecated in PHP 7.2 and should not be used anymore. This module uses it in the main .module file for a custom sort function.

Two choices:

1) Use the new method for declaring anonymous functions:

$func = function () { ... };

2) Make the sort function a real function.

Comments

bkosborne created an issue. See original summary.

joelpittet’s picture

http://php.net/manual/en/functions.anonymous.php Anonymous functions require 5.3, I'd rather not up the PHP version, so #2 sounds like a better plan, want to provide a patch @bkosborne?

bkosborne’s picture

Assigned: Unassigned » bkosborne

Agreed. Yes, I can do that, probably within a few days.

bkosborne’s picture

Status: Active » Needs review
StatusFileSize
new1020 bytes

  • joelpittet committed 02530d7 on 7.x-3.x authored by bkosborne
    Issue #2946220 by bkosborne: PHP 7.2+ future proofing, remove usage of...
joelpittet’s picture

Status: Needs review » Fixed

Thanks @bkosborne, I've committed this to the dev branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.