diff options
Diffstat (limited to 'lib/private/AppFramework/Middleware/Security/Exceptions/NotAdminException.php')
-rw-r--r-- | lib/private/AppFramework/Middleware/Security/Exceptions/NotAdminException.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/AppFramework/Middleware/Security/Exceptions/NotAdminException.php b/lib/private/AppFramework/Middleware/Security/Exceptions/NotAdminException.php index ca8a2c89416..cd73c81e18a 100644 --- a/lib/private/AppFramework/Middleware/Security/Exceptions/NotAdminException.php +++ b/lib/private/AppFramework/Middleware/Security/Exceptions/NotAdminException.php @@ -1,4 +1,5 @@ <?php +declare(strict_types=1); /** * @copyright Copyright (c) 2016, ownCloud, Inc. * @@ -35,7 +36,7 @@ use OCP\AppFramework\Http; * @package OC\AppFramework\Middleware\Security\Exceptions */ class NotAdminException extends SecurityException { - public function __construct($message = 'Logged in user must be an admin') { + public function __construct(string $message) { parent::__construct($message, Http::STATUS_FORBIDDEN); } } |