aboutsummaryrefslogtreecommitdiff
path: root/lib/Minz/Log.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2022-01-01 11:26:56 +0100
committerGravatar GitHub <noreply@github.com> 2022-01-01 11:26:56 +0100
commit3f6aa42b817145a3b00f4d615f87728b55c4413a (patch)
treee5b31941b0acc3a2f4c47e4846afcfe987b9852f /lib/Minz/Log.php
parent77e9877316fcfacb26799afdf32d94c8411da80e (diff)
Fix most PHPDocs errors (#4107)
Contributes to https://github.com/FreshRSS/FreshRSS/issues/4103 https://phpstan.org/writing-php-code/phpdoc-types
Diffstat (limited to 'lib/Minz/Log.php')
-rw-r--r--lib/Minz/Log.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Minz/Log.php b/lib/Minz/Log.php
index 1686bdaf0..2b11f9b8b 100644
--- a/lib/Minz/Log.php
+++ b/lib/Minz/Log.php
@@ -14,9 +14,9 @@ class Minz_Log {
* - environment = SILENT
* - level = LOG_WARNING et environment = PRODUCTION
* - level = LOG_NOTICE et environment = PRODUCTION
- * @param $information message d'erreur / information à enregistrer
- * @param $level niveau d'erreur https://php.net/function.syslog
- * @param $file_name fichier de log
+ * @param string $information message d'erreur / information à enregistrer
+ * @param int $level niveau d'erreur https://php.net/function.syslog
+ * @param string $file_name fichier de log
* @throws Minz_PermissionDeniedException
*/
public static function record ($information, $level, $file_name = null) {
@@ -79,7 +79,7 @@ class Minz_Log {
* This method can be called multiple times for one script execution, but its result will not change unless
* you call clearstatcache() in between. We won't due do that for performance reasons.
*
- * @param $file_name
+ * @param string $file_name
* @throws Minz_PermissionDeniedException
*/
protected static function ensureMaxLogSize($file_name) {
@@ -108,7 +108,7 @@ class Minz_Log {
* Automatise le log des variables globales $_GET et $_POST
* Fait appel à la fonction record(...)
* Ne fonctionne qu'en environnement "development"
- * @param $file_name fichier de log
+ * @param string $file_name fichier de log
*/
public static function recordRequest($file_name = null) {
$msg_get = str_replace("\n", '', '$_GET content : ' . print_r($_GET, true));