mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-15 11:31:40 +00:00
Fix PHPDocs of GadgetDefinitionContent::getDeletionUpdates
DataUpdate is a specific implementation (currently the only one), while DeferrableUpdate is the interface. Binding against the interface is enough, and what the base classes already do. I'm also removing a line of meaningless documentation. "Creates an instance of this class" is a general description that is true for all constructors. Change-Id: Ia6dc86b078628db5e0ab68ef46bf0396567b767c
This commit is contained in:
parent
447e62b5ac
commit
f564d52d9a
|
@ -16,8 +16,6 @@ class GadgetResourceLoaderModule extends ResourceLoaderWikiModule {
|
|||
private $gadget;
|
||||
|
||||
/**
|
||||
* Creates an instance of this class
|
||||
*
|
||||
* @param array $options
|
||||
*/
|
||||
public function __construct( array $options ) {
|
||||
|
|
|
@ -97,7 +97,7 @@ class GadgetDefinitionContent extends JsonContent {
|
|||
/**
|
||||
* @param WikiPage $page
|
||||
* @param ParserOutput $parserOutput
|
||||
* @return DataUpdate[]
|
||||
* @return DeferrableUpdate[]
|
||||
*/
|
||||
public function getDeletionUpdates( WikiPage $page, ParserOutput $parserOutput = null ) {
|
||||
return array_merge(
|
||||
|
|
Loading…
Reference in a new issue