From 288ed04ccc30b58373576dc3be811aee43e67034 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 31 Mar 2023 08:23:39 +0200 Subject: PHPStan level 6 for all PDO and Exception classes (#5239) * PHPStan level 6 for all PDO and Exception classes Contributes to https://github.com/FreshRSS/FreshRSS/issues/4112 * Fix type * Now also our remaining own librairies * Motivation for a few more files * A few more DAO classes * Last interface --- cli/i18n/I18nValidatorInterface.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'cli/i18n/I18nValidatorInterface.php') diff --git a/cli/i18n/I18nValidatorInterface.php b/cli/i18n/I18nValidatorInterface.php index d5681912b..e6f5f7cdd 100644 --- a/cli/i18n/I18nValidatorInterface.php +++ b/cli/i18n/I18nValidatorInterface.php @@ -5,21 +5,14 @@ interface I18nValidatorInterface { /** * Display the validation result. * Empty if there are no errors. - * - * @return array */ - public function displayResult(); + public function displayResult(): string; - /** - * @return bool - */ - public function validate(); + public function validate(): bool; /** * Display the validation report. - * - * @return string */ - public function displayReport(); + public function displayReport(): string; } -- cgit v1.2.3