Remove `final` from `UserEditor::getPasswordHash()`
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 21 Oct 2020 11:49:30 +0000 (13:49 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 21 Oct 2020 11:49:30 +0000 (13:49 +0200)
In PHP 8:

> Private methods cannot be final as they are never overridden by other classes

wcfsetup/install/files/lib/data/user/UserEditor.class.php

index a53cf6b5e58b135cdeb82988710e1cd67843ff53..f9d7642be49db5692fc49699abd1bfc3556a2f65 100644 (file)
@@ -41,7 +41,7 @@ class UserEditor extends DatabaseObjectEditor implements IEditableCachedObject {
         * 
         * @since 5.4
         */
-       private static final function getPasswordHash(?string $password = null): string {
+       private static function getPasswordHash(?string $password = null): string {
                $manager = PasswordAlgorithmManager::getInstance();
                
                $algorithm = $manager->getDefaultAlgorithm();