From ca7b37ce5a5c68ea4a105377754005a772c5deaa Mon Sep 17 00:00:00 2001 From: J0WI <J0WI@users.noreply.github.com> Date: Mon, 19 Apr 2021 15:50:30 +0200 Subject: Make Security module strict Signed-off-by: J0WI <J0WI@users.noreply.github.com> --- lib/public/ICertificateManager.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'lib/public/ICertificateManager.php') diff --git a/lib/public/ICertificateManager.php b/lib/public/ICertificateManager.php index da97dc105d0..2014ec3ec06 100644 --- a/lib/public/ICertificateManager.php +++ b/lib/public/ICertificateManager.php @@ -1,4 +1,7 @@ <?php + +declare(strict_types=1); + /** * @copyright Copyright (c) 2016, ownCloud, Inc. * @@ -35,7 +38,7 @@ interface ICertificateManager { * @return \OCP\ICertificate[] * @since 8.0.0 */ - public function listCertificates(); + public function listCertificates(): array; /** * @param string $certificate the certificate data @@ -44,13 +47,14 @@ interface ICertificateManager { * @throws \Exception If the certificate could not get added * @since 8.0.0 - since 8.1.0 throws exception instead of returning false */ - public function addCertificate($certificate, $name); + public function addCertificate(string $certificate, string $name): \OCP\ICertificate; /** * @param string $name + * @return bool * @since 8.0.0 */ - public function removeCertificate($name); + public function removeCertificate(string $name): bool; /** * Get the path to the certificate bundle @@ -58,7 +62,7 @@ interface ICertificateManager { * @return string * @since 8.0.0 */ - public function getCertificateBundle(); + public function getCertificateBundle(): string; /** * Get the full local path to the certificate bundle @@ -66,5 +70,5 @@ interface ICertificateManager { * @return string * @since 9.0.0 */ - public function getAbsoluteBundlePath(); + public function getAbsoluteBundlePath(): string; } -- cgit v1.2.3