aboutsummaryrefslogtreecommitdiffstats
path: root/includes/xml/XmlSelect.php
Commit message (Collapse)AuthorAgeFilesLines
* Add missing documentation to class properties (miscellaneous classes)Umherirrender2024-09-141-0/+4
| | | | | | | | | | Add doc-typehints to class properties found by the PropertyDocumentation sniff to improve the documentation. Once the sniff is enabled it avoids that new code is missing type declarations. This is focused on documentation and does not change code. Change-Id: I1da4b272a6b28c419cc8e860d142dae19ca0bbcf
* Add namespace and deprecation alias to Xml and XmlSelectEbrahim Byagowi2024-05-161-0/+4
| | | | | | | | | | This patch introduces a new namespace declaration, MediaWiki\Xml and adds Xml and XmlSelect to it and establishes class aliases marked as deprecated since version 1.43. Bug: T353458 Change-Id: I45cccd540b6e15f267d3ab588a064fbeb719d921
* Reorg: Move HTML-related classes out of includes/ to Html/Amir Sarabadani2023-02-161-0/+2
| | | | | Bug: T321882 Change-Id: I5dc1f7e9c303cd3f5b9dd7010d6bb470d8400a18
* Use short array destructuring instead of list()Tim Starling2022-10-211-1/+1
| | | | | | | | Introduced in PHP 7.1. Because it's shorter and looks nice. I used regex replacement. Change-Id: I0555e199d126cd44501f859cb4589f8bd49694da
* phan: Disable scalar_implicit_cast settingUmherirrender2022-03-181-1/+1
| | | | | | | | | Make phan stricter about scalar types by setting scalar_implicit_cast to false (the default in mediawiki-phan-config) Bug: T242536 Bug: T301991 Change-Id: Ia2fe30b17804186571722e728578121c8b75d455
* Fix various documentation related to scalar typesUmherirrender2022-03-091-3/+3
| | | | | | Found by phan strict checks Change-Id: If41d16b473baddd92cc4261cdc2bfbe65fedcb19
* ProtectionForm: Use XmlSelect::parseOptionsMessage where appropriateBartosz DziewoƄski2021-05-251-0/+1
| | | | | | | Previously done in 02db290c6406ebf1db5eadf308fcf4694b21929a, looks like it was accidentally undone in 1262ca1897ea9c3f4afea86cbc25f98e24d840da. Change-Id: I227ed9c6ba146fa249756f444f5c96ac2b5022b6
* build: Enable phan-taint-check-plugin and suppress issuesUmherirrender2020-12-301-2/+1
| | | | | | | | | | | | | | | | | | Taint check checks for possible security issues by tracking html escaping and more by using phan. This slows done the phan-job a bit and requires more ram Keep the DoubleEscaped issues out to make reviewer easier Adds suppression for false positives Adds taint-annotation to help taint-check Removes suppression for code phan now understand better by the tracking of keys in taint-check Fix some small issues by adding int cast or htmlspecialchars calls Bug: T216348 Bug: T268920 Change-Id: I849ac4f120fd15b483e8939d4db45c98dc351259
* Unify handling of options messagesSam Wilson2020-03-271-0/+23
| | | | | | | | | There are a few messages that use a custom format for select lists. This moves the parsing of these messages into a single method. Bug: T245565 Change-Id: I0a24d3458979d7cca2dc3cb38c1b0f700a88490a
* Move Xml* classes under /xmlAaron Schulz2020-03-191-0/+136
Change-Id: I012648c9a860611a7cd809119073803e82429fc3