Use ::class for class name

Change-Id: I31900653180fa9667ac119fefaf1ea1c33aa2c83
This commit is contained in:
Umherirrender 2021-04-08 20:34:17 +02:00
parent 169f4ecd5a
commit ab552f3e2d
2 changed files with 2 additions and 2 deletions

View file

@ -159,7 +159,7 @@ class GadgetHooks {
foreach ( $ids as $id ) {
$resourceLoader->register( Gadget::getModuleName( $id ), [
'class' => 'GadgetResourceLoaderModule',
'class' => GadgetResourceLoaderModule::class,
'id' => $id,
] );
}

View file

@ -37,7 +37,7 @@ class GadgetDefinitionContentHandler extends JsonContentHandler {
* @return string
*/
protected function getContentClass() {
return 'GadgetDefinitionContent';
return GadgetDefinitionContent::class;
}
public function makeEmptyContent() {