1 | <?php |
||
20 | class AbuseFilter { |
||
21 | |||
22 | /** |
||
23 | * Wiki class |
||
24 | * |
||
25 | * @var Wiki |
||
26 | * @access private |
||
27 | */ |
||
28 | private $wiki; |
||
29 | |||
30 | /** |
||
31 | * Construction method for the AbuseFilter class |
||
32 | * |
||
33 | * @access public |
||
34 | * @param Wiki &$wikiClass The Wiki class object |
||
35 | * @throws DependencyError |
||
36 | */ |
||
37 | public function __construct(Wiki &$wikiClass) |
||
45 | |||
46 | /** |
||
47 | * Returns the abuse filter log |
||
48 | * |
||
49 | * @access public |
||
50 | * @param int $filter Filter ID. Default null |
||
51 | * @param string $user Show entries by this user. Default null |
||
52 | * @param string $title Show entries to this title. Default null |
||
53 | * @param int $limit Number of entries to retrieve. Defautl null |
||
54 | * @param string $start Timestamp to start at. Default null |
||
55 | * @param string $end Timestamp to end at. Default null |
||
56 | * @param string $dir Direction to list. Default older |
||
57 | * @param array $prop Properties to retrieve. Default array( 'ids', 'filter', 'user', 'ip', 'title', 'action', 'details', 'result', 'timestamp' ) |
||
58 | * @return array |
||
59 | */ |
||
60 | public function abuselog( $filter = null, $user = null, $title = null, $limit = null, $start = null, $end = null, $dir = 'older', $prop = array( |
||
82 | |||
83 | /** |
||
84 | * Returns a list of all filters |
||
85 | * |
||
86 | * @access public |
||
87 | * @param int $start Filter ID to start at. Default null |
||
88 | * @param int $end Filter ID to end at. Default null |
||
89 | * @param string $dir Direction to list. Default newer |
||
90 | * @param bool $enabled Only list enabled filters. true => only enabled, false => only disabled, null => all |
||
91 | * @param bool $deleted Only list deleted filters. true => only deleted, false => only non-deleted, null => all |
||
92 | * @param bool $private Only list private filters. true => only private, false => only non-private, null => all |
||
93 | * @param int $limit Number of filters to get. Default null |
||
94 | * @param array $prop Properties to retrieve. Default array( 'id', 'description', 'pattern', 'actions', 'hits', 'comments', 'lasteditor', 'lastedittime', 'status', 'private' ) |
||
95 | * @return array |
||
96 | */ |
||
97 | public function abusefilters( $start = null, $end = null, $dir = 'newer', $enabled = null, $deleted = false, $private = null, $limit = null, $prop = array( |
||
143 | |||
144 | |||
145 | } |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: