From: addshore Date: Fri, 29 Jan 2016 14:41:32 +0000 (+0100) Subject: Fix doc of LogFormatter::newFromRow X-Git-Tag: 1.31.0-rc.0~8145^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/modifier.php?a=commitdiff_plain;h=1159454506b6809c340d999461be8cf1a7e39d4f;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 */