Skip to content

Commit 0430b61

Browse files
committed
PLATFORM-10117: Migrate UsingData to MW 1.43
1 parent ee99692 commit 0430b61

File tree

6 files changed

+297
-257
lines changed

6 files changed

+297
-257
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
build:
1111
strategy:
1212
matrix:
13-
php_version: ['8.0']
14-
mw: ['REL1_39']
13+
php_version: ['8.1']
14+
mw: ['REL1_43']
1515

1616
runs-on: ubuntu-latest
1717
steps:

.phan/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
$config = require __DIR__ . '/../vendor/mediawiki/mediawiki-phan-config/src/config.php';
44

5-
$config['minimum_target_php_version'] = '8.0.28';
5+
$config['minimum_target_php_version'] = '8.1.0';
66

77
return $config;

.phan/issue-baseline.php

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extension.json

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license-name": "GPL-2.0-or-later",
77
"type": "parserhook",
88
"requires": {
9-
"MediaWiki": ">= 1.39.0"
9+
"MediaWiki": ">= 1.43.0"
1010
},
1111
"MessagesDirs": {
1212
"UsingData": [
@@ -16,15 +16,20 @@
1616
"ExtensionMessagesFiles": {
1717
"UsingDataMagic": "UsingData.i18n.magic.php"
1818
},
19-
"AutoloadClasses": {
20-
"UsingDataHooks": "src/UsingDataHooks.php",
21-
"UsingDataPPFrameDOM": "src/UsingDataPPFrameDOM.php"
19+
"AutoloadNamespaces": {
20+
"Fandom\\UsingData\\": "src"
2221
},
2322
"Hooks": {
24-
"BeforeParserFetchTemplateRevisionRecord": "UsingDataHooks::onBeforeParserFetchTemplateRevisionRecord",
25-
"GetMagicVariableIDs": "UsingDataHooks::onGetMagicVariableIDs",
26-
"ParserFirstCallInit": "UsingDataHooks::onParserFirstCallInit",
27-
"ParserGetVariableValueSwitch": "UsingDataHooks::ancestorNameVar"
23+
"BeforeParserFetchTemplateRevisionRecord": "main",
24+
"GetMagicVariableIDs": "main",
25+
"ParserFirstCallInit": "main",
26+
"ParserGetVariableValueSwitch": "main"
27+
},
28+
"HookHandlers": {
29+
"main": {
30+
"class": "Fandom\\UsingData\\UsingDataHooks",
31+
"services": ["TitleFactory", "NamespaceInfo"]
32+
}
2833
},
2934
"manifest_version": 1
3035
}

0 commit comments

Comments
 (0)