new \Mediawiki\DataModel...\DataModel\Revisions()) is of type object<Mediawiki\DataModel\Page>, but the function expects a object<Mediawiki\DataModel\PageIdentifier>.
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:
functionacceptsInteger($int){}$x='123';// string "123"// Instead ofacceptsInteger($x);// we recommend to useacceptsInteger((integer)$x);
Loading history...
46
new PageIdentifier(
47
new Title( $logevent['title'], $logevent['ns'] ),
48
$logevent['pageid']
49
),
50
new Revisions()
51
),
52
$logevent['comment'],
53
$this->getLogDetailsFromEvent( $logevent )
54
)
55
);
56
}
57
58
return $logList;
59
}
60
}
61
62
/**
63
* @param array $event
64
*
65
* @return array
66
*/
67
private function getLogDetailsFromEvent( $event ) {
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: