mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
build: Updating mediawiki/mediawiki-phan-config to 0.11.0
Change-Id: I18aeec0e77c9aacfc4df8de485a246416cc0ecd3
This commit is contained in:
parent
3ee7a1f1ed
commit
db01666a88
|
@ -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"
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue