Skip to content

PHP 8.2 Deprecation #3546

@dleffler

Description

@dleffler

Describe the bug
Use of 'self::' in some functions is dprecated in PHP v8.2

To Reproduce
Steps to reproduce the behavior:

  1. Open elFinder under PHP v8.2
  2. Note the number of warning messages referencing elFinder.class.php line # 795 calling 'self'

Expected behavior
Should not throw messages

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome
  • Version 108

Fix
Change elFinder.class.php line # 795 to:

$doRegist = ($_reqCmd && in_array($_reqCmd, array_map('elFinder::getCmdOfBind', explode(' ', $cmd))));
'''
instead of currently
'''
$doRegist = ($_reqCmd && in_array($_reqCmd, array_map('self::getCmdOfBind', explode(' ', $cmd))));

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions