Problem/Motivation

Deprecated: Use of "static" in callables is deprecated in /var/www/html/docroot/modules/contrib/ckeditor_templates_ui/src/Entity/CkeditorTemplates.php on line 102

Steps to reproduce

This is showing on all of my edit pages with a ckeditor.

Proposed resolution

Replace:
- uasort($entities, 'static::sort');

With:
+ uasort($entities, static::sort(...));

CommentFileSizeAuthor
#2 3408011-static-deprecated.patch569 bytesanthonytm
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

anthonytm created an issue. See original summary.

anthonytm’s picture

StatusFileSize
new569 bytes

Here is a patch.

abhishek_virasat made their first commit to this issue’s fork.

abhishek_gupta1’s picture

Status: Active » Needs review

I have added new changes for above issue. issue is fixed.please kindly review the MR.

jrglasgow’s picture

Status: Needs review » Reviewed & tested by the community

this works for me, I think it is ready to be committed

anas_maw’s picture

Works for me too, thanks

  • 99fd31e2 committed on 2.0.x
    Issue #3408011 by anthonytm, Anas_maw: Use of "static" in callables is...

  • 029f5432 committed on 8.x-1.x
    Issue #3408011 by anthonytm, Anas_maw: Use of "static" in callables is...
anas_maw’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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

liam morland’s picture

Version: 8.x-1.5 » 8.x-1.x-dev

Please make a 8.x-1.6 release with this fix.

anas_maw’s picture

Done