diff --git a/php/src/Auth/AuthManager.php b/php/src/Auth/AuthManager.php index f3775146400..200942cbbf0 100644 --- a/php/src/Auth/AuthManager.php +++ b/php/src/Auth/AuthManager.php @@ -6,11 +6,11 @@ use AIO\Data\DataConst; use DateTime; -class AuthManager { +readonly class AuthManager { private const string SESSION_KEY = 'aio_authenticated'; public function __construct( - private readonly ConfigurationManager $configurationManager + private ConfigurationManager $configurationManager ) { } diff --git a/php/src/Auth/PasswordGenerator.php b/php/src/Auth/PasswordGenerator.php index 726a58709ee..57df7d43306 100644 --- a/php/src/Auth/PasswordGenerator.php +++ b/php/src/Auth/PasswordGenerator.php @@ -4,7 +4,7 @@ use Random\RandomException; -class PasswordGenerator { +readonly class PasswordGenerator { private const array WORDS = [ 'abacus',