build: Updating mediawiki/mediawiki-phan-config to 0.11.0

Change-Id: I18aeec0e77c9aacfc4df8de485a246416cc0ecd3
This commit is contained in:
libraryupgrader 2021-09-04 16:55:58 +00:00 committed by DannyS712
parent 3ee7a1f1ed
commit db01666a88
2 changed files with 2 additions and 3 deletions

View file

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

View file

@ -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 );