From 3f6aa42b817145a3b00f4d615f87728b55c4413a Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 1 Jan 2022 11:26:56 +0100 Subject: Fix most PHPDocs errors (#4107) Contributes to https://github.com/FreshRSS/FreshRSS/issues/4103 https://phpstan.org/writing-php-code/phpdoc-types --- app/Models/ConfigurationSetter.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'app/Models/ConfigurationSetter.php') diff --git a/app/Models/ConfigurationSetter.php b/app/Models/ConfigurationSetter.php index 535f17e2e..3c07db4a0 100644 --- a/app/Models/ConfigurationSetter.php +++ b/app/Models/ConfigurationSetter.php @@ -3,8 +3,8 @@ class FreshRSS_ConfigurationSetter { /** * Return if the given key is supported by this setter. - * @param $key the key to test. - * @return boolean true if the key is supported, false else. + * @param string $key the key to test. + * @return boolean true if the key is supported, false otherwise. */ public function support($key) { $name_setter = '_' . $key; @@ -13,9 +13,9 @@ class FreshRSS_ConfigurationSetter { /** * Set the given key in data with the current value. - * @param $data an array containing the list of all configuration data. - * @param $key the key to update. - * @param $value the value to set. + * @param array $data an array containing the list of all configuration data. + * @param string $key the key to update. + * @param mixed $value the value to set. */ public function handle(&$data, $key, $value) { $name_setter = '_' . $key; @@ -25,7 +25,7 @@ class FreshRSS_ConfigurationSetter { /** * A helper to set boolean values. * - * @param $value the tested value. + * @param mixed $value the tested value. * @return boolean true if value is true and different from no, false else. */ private function handleBool($value) { -- cgit v1.2.3