Dependency of an extension upon particular MediaWiki versions should
be expressed in extension.json. As brought up on wikitech-l, we still
have the code that injects a virtual mediawiki/mediawiki package into
Composer so that extensions can express a dependency upon particular
MediaWiki versions in composer.json. This is duplicate information
potentially introducing inconsistency. This patch removes support for
this capability. Per codesearch, there are no remaining extensions
found using this feature.
The classes in includes/composer are removed immediately as they've
never been intended for extensions to use, while MediaWikiVersionFetcher
is marked for standard deprecation.
Bug: T467
Bug: T249573
Change-Id: I62bacca45e4680812dd42f4e061ca7da17bfcdbb
Why:
- Calling maintenance scripts directly is deprecated and emits a
warning, which would be confusing especially for a new contributor to
MediaWiki
What:
- Use run.php entrypoint for `composer mw-install:sqlite`
Bug: T347347
Change-Id: Id0c31b8205c03e8036d0fe1e36f5d01ad7d12867
Why:
- We want developers to have DevelopmentSettings loaded by default
What:
- Define a new `--with-developmentsettings` argument for install.php,
Set it to true in the `composer mw-install:sqlite` invocation
For now, this option is not supported in the web installer.
Bug: T347347
Change-Id: Icba2d614fd1349463fb745ef31f53a3b3834e5ad
Why:
- IPv4 networking is more intuitive for local development.
What:
- Use 127.0.0.1 instead of "localhost" for the argument to `php -S`.
This means that edits will be assigned to 127.0.0.01 instead of
e.g. ::1
Change-Id: I007f7efe260ddea2646fea5cd9d8552575d34c92
Why:
- Default process timeout is 300 seconds, which is not helpful when
using `composer:serve`
What:
- Disable the process timeout for `composer:serve`
Bug: T347347
Change-Id: I8f2706fdd2e99870530405deca375066dbb7e012
This ensures that Parsoid and core can communicate using a common
interface. By reusing Parsoid's trait it also eliminates code duplication
between LinkTarget, Title, and TitleValue.
Even though Parsoid's LinkTarget interface is identical to core's, I've
elected not to leave an empty LinkTarget interface in core but instead to
(re)define the interface methods in order to make core slightly more
self-contained and avoid the need for core hackers to consult the
Parsoid codebase for the definitions of LinkTarget methods.
A small number of types in core were broadened to accept a Parsoid
LinkTarget instead of just a core LinkTarget, but these changes should
be minimal: only core which directly communicates with Parsoid should
need to know about Parsoid's superinterface here.
Bug: T296023
Depends-On: Id6ad5ac3b8d1c21c129fa94c10879a1632ed4b47
Depends-On: I59794e98c9881aff3ea6a258bf7d1660a203eb84
Depends-On: Ifc14c0ffc43c7939a6e6b55e00fe2f453fa143a1
Change-Id: I9adc349b230834827b002f412dcc697b44773abe
So we can also update it in WikibaseLexeme. There’s nothing super
important in this release [1] – PHP 8.2 support is nice for local
development, I suppose – but mainly I just don’t want us to be stuck on
an old version for too long.
[1]: https://github.com/giorgiosironi/eris/blob/master/CHANGELOG.md#0140---2023-04-21
Bug: T351383
Change-Id: I5a04487cada95018fcbfeebdcd6f317e4c0415c5
This reverts commit 579183022b.
Reason for revert: We're now on dbal `3.4.2`, up from `2.13.6||3.1.5`.
Change-Id: I6c8503d1570c17dd73643e858874a05c495a253a
From https://github.com/PHPCSStandards/composer-installer:
> This composer installer plugin allows for easy installation
of PHP_CodeSniffer coding standards (rulesets).
It is currently needed to add sniffs from the standards defined in
PHPCSExtra, see T349327.
Bug: T349327
Change-Id: Ie30bc09b937188db84e9106a843f9d4f31100558
In line with our other PHP 8.x forward-looking dependencies.
Depends-On: I1fa21adbb8c6608b3b16f2bdbc5143b49764816c
Change-Id: I6e542b689dd20dd68140f7fc209530a998105945
This adds Bcp47Code::isSameCodeAs() to the interface, which is
implemented for the Language class in
If3abc8a55eda8879ca904b25e9e3e5d40c1b0bab.
Depends-On: I323ebdf3bfa9f8fae2fb6991880cceae250dcf20
Change-Id: I34edabc5a3b6dc82810e8d96c7ce0513d6f18428
The corresponding change in mediawiki/vendor is
6776c0a2c1e8bbcc019a6929d8202bc41fa2dcfa.
Bug: T326454
Change-Id: I529527f0a5652b5355cf69968ffabdcd31c6c3dc