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:
Thiemo Mättig 2018-01-24 14:50:00 +01:00
parent 447e62b5ac
commit f564d52d9a
2 changed files with 1 additions and 3 deletions

View file

@ -16,8 +16,6 @@ class GadgetResourceLoaderModule extends ResourceLoaderWikiModule {
private $gadget;
/**
* Creates an instance of this class
*
* @param array $options
*/
public function __construct( array $options ) {

View file

@ -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(