From 1159454506b6809c340d999461be8cf1a7e39d4f Mon Sep 17 00:00:00 2001 From: addshore Date: Fri, 29 Jan 2016 15:41:32 +0100 Subject: [PATCH] Fix doc of LogFormatter::newFromRow DatabaseLogEntry::newFromRow can take both objects and arrays (arrays are cast to objects). An array is passed into this method in the CheckUser extension. Fixing this phpdoc will mean static analysis tools will no longer detect that as an error Change-Id: I84f35c21f8b4e3be0f5b5bd2051f566bda6544fc --- includes/logging/LogFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/logging/LogFormatter.php b/includes/logging/LogFormatter.php index e2d9946b83..e0e66bfebe 100644 --- a/includes/logging/LogFormatter.php +++ b/includes/logging/LogFormatter.php @@ -67,7 +67,7 @@ class LogFormatter { /** * Handy shortcut for constructing a formatter directly from * database row. - * @param object $row + * @param stdClass|array $row * @see DatabaseLogEntry::getSelectQueryData * @return LogFormatter */ -- 2.20.1