From 0cafe062cb93f99f3119758104508869faeed41e Mon Sep 17 00:00:00 2001 From: Perry Fraser Date: Thu, 23 Jun 2022 20:25:52 -0400 Subject: [PATCH] Use correct namespace for ResourceLoader\Context Bug: T308718 Change-Id: Ifdd538086388fc044cba86d2ebb1d7ebb9850506 --- includes/TimelessVariablesModule.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/TimelessVariablesModule.php b/includes/TimelessVariablesModule.php index d0972b8..1c40f7d 100644 --- a/includes/TimelessVariablesModule.php +++ b/includes/TimelessVariablesModule.php @@ -2,7 +2,7 @@ namespace MediaWiki\Skin\Timeless; -use ResourceLoaderContext; +use MediaWiki\ResourceLoader\Context; use ResourceLoaderSkinModule; /** @@ -12,10 +12,10 @@ class TimelessVariablesModule extends ResourceLoaderSkinModule { /** * Add our LESS variables * - * @param ResourceLoaderContext $context + * @param Context $context * @return array LESS variables */ - protected function getLessVars( ResourceLoaderContext $context ) { + protected function getLessVars( Context $context ) { $vars = parent::getLessVars( $context ); $config = $this->getConfig(); @@ -41,10 +41,10 @@ class TimelessVariablesModule extends ResourceLoaderSkinModule { /** * Register the config var with the caching stuff so it properly updates the cache * - * @param ResourceLoaderContext $context + * @param Context $context * @return array */ - public function getDefinitionSummary( ResourceLoaderContext $context ) { + public function getDefinitionSummary( Context $context ) { $summary = parent::getDefinitionSummary( $context ); $summary[] = [ 'TimelessBackdropImage' => $this->getConfig()->get( 'TimelessBackdropImage' )