-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Describe the bug
Use of 'self::' in some functions is dprecated in PHP v8.2
To Reproduce
Steps to reproduce the behavior:
- Open elFinder under PHP v8.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