diff --git a/composer.json b/composer.json index f73e684d2a..a3b21e3849 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "require-dev": { "mediawiki/mediawiki-codesniffer": "37.0.0", - "mediawiki/mediawiki-phan-config": "0.10.6", + "mediawiki/mediawiki-phan-config": "0.11.0", "mediawiki/minus-x": "1.1.1", "php-parallel-lint/php-console-highlighter": "0.5.0", "php-parallel-lint/php-parallel-lint": "1.3.1" diff --git a/includes/VisualEditorHooks.php b/includes/VisualEditorHooks.php index 45e182b9e9..fe63de4d3e 100644 --- a/includes/VisualEditorHooks.php +++ b/includes/VisualEditorHooks.php @@ -691,7 +691,6 @@ class VisualEditorHooks { // add VE edit section in VE available namespaces if ( self::isVisualAvailable( $title, $skin->getRequest(), $user ) ) { - // @phan-suppress-next-line PhanTypeArraySuspiciousNullable $veEditSection = $tabMessages['editsection']; $attribs = $result['editsection']['attribs']; @@ -977,7 +976,7 @@ class VisualEditorHooks { * @param OutputPage $out The page view. */ public static function onMakeGlobalVariablesScript( array &$vars, OutputPage $out ) { - $pageLanguage = ApiParsoidTrait::getPageLanguage( $out->getTitle() ); + $pageLanguage = ApiVisualEditor::getPageLanguage( $out->getTitle() ); $converter = MediaWikiServices::getInstance()->getLanguageConverterFactory() ->getLanguageConverter( $pageLanguage );