This requires 1.42 for some new names
Changes to the use statements done automatically via script
Addition of missing use statement done manually
Change-Id: I9a7df2df9407ef10d855bc19db247983682a5fc8
::doUserEditContent() is available since 1.36 as a replacement
for ::doEditContent(), which has been deprecated. Extension
already requires MediaWiki 1.36+, so the method is always
available.
Bug: T255507
Change-Id: I6bccbe68a1c462fa8c44d0e5aa01656e73f5c2b8
ContentHandler::getContentText() is deprecated and should be
replaced with Content::getText() for TextContent instances.
Change-Id: Ic858f41f66d3c6654f28e3b330d1ce3a35507b13
Bumped MediaWiki requirement for usage of Maintenance::fatalError(),
which was introduced in 1.31.
Change-Id: I24446b93d47184907847ed825b42735a74fbddf0
This was causing by echo'ing a value from the database. Since
this script does not use the standard Maintenance class,
phan-taint-check was unable to determine it was a command line
script and thought this was an XSS.
Casting to int caused phan-taint-check to know that the value
was safe, and thus prevents the false positive warning.
Change-Id: Ib786fd591ed50f9b3934efa0c3f06e4c307a81f5