Fix doc of LogFormatter::newFromRow
authoraddshore <addshorewiki@gmail.com>
Fri, 29 Jan 2016 14:41:32 +0000 (15:41 +0100)
committeraddshore <addshorewiki@gmail.com>
Fri, 29 Jan 2016 14:41:32 +0000 (15:41 +0100)
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

index e2d9946..e0e66bf 100644 (file)
@@ -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
         */