mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-28 09:10:07 +00:00
Use ::class for class name
Change-Id: I31900653180fa9667ac119fefaf1ea1c33aa2c83
This commit is contained in:
parent
169f4ecd5a
commit
ab552f3e2d
|
@ -159,7 +159,7 @@ class GadgetHooks {
|
|||
|
||||
foreach ( $ids as $id ) {
|
||||
$resourceLoader->register( Gadget::getModuleName( $id ), [
|
||||
'class' => 'GadgetResourceLoaderModule',
|
||||
'class' => GadgetResourceLoaderModule::class,
|
||||
'id' => $id,
|
||||
] );
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ class GadgetDefinitionContentHandler extends JsonContentHandler {
|
|||
* @return string
|
||||
*/
|
||||
protected function getContentClass() {
|
||||
return 'GadgetDefinitionContent';
|
||||
return GadgetDefinitionContent::class;
|
||||
}
|
||||
|
||||
public function makeEmptyContent() {
|
||||
|
|
Loading…
Reference in a new issue