aboutsummaryrefslogtreecommitdiffstats
path: root/includes/widget/SpinnerWidget.php
Commit message (Collapse)AuthorAgeFilesLines
* htmlform: Add missing documentation to class propertiesUmherirrender2024-09-141-0/+2
| | | | | | | | | | 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: I1f306a3925d6768209a06e70082598b2f70cd319
* Add "implements Stringable" to every class with "function __toString()"Bartosz DziewoƄski2024-06-131-1/+2
| | | | | | | | | | | | | In PHP 8, but not in PHP 7.4, every class with a __toString() function implicitly implements the Stringable interface. Therefore, the behavior of checks like "instanceof Stringable" differs between these PHP versions when such classes are involved. Make every such class implement the interface so that the behavior will be consistent. The PHP 7.4 fallback for the Stringable interface is provided by symfony/polyfill-php80. Change-Id: I3f0330c2555c7d3bf99b654ed3c0b0303e257ea1
* Refactor widget classes to use cleaner namespacingDogu2024-01-021-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch refactors various widget classes in the includes/widget directory to use cleaner namespacing. The patches remove redundant backslash prefixes in class extending statements and add use statements for OOUI classes and other MediaWiki-specific classes. This patch improves readability and maintainability of the code by following the MediaWiki coding conventions and leverages the benefits of PHP's namespacing system. List of affected classes: - CheckMatrixWidget - DateInputWidget - DateTimeInputWidget - NamespaceInputWidget - SearchInputWidget - SelectWithInputWidget - SizeFilterWidget - SpinnerWidget - TagMultiselectWidget - TitleInputWidget - UserInputWidget Additionally, the code now correctly documents exceptions thrown by constructors where missing, enforcing clearer developer expectations. Change-Id: I0fdaf68a412a1c3b7049a79222f4dbeaa95a6bbc
* Reorg: Move HTML-related classes out of includes/ to Html/Amir Sarabadani2023-02-161-1/+1
| | | | | Bug: T321882 Change-Id: I5dc1f7e9c303cd3f5b9dd7010d6bb470d8400a18
* Remove unreachable code after exception/die/exitUmherirrender2021-09-031-1/+0
| | | | Change-Id: Ia81903fb2a8157625fbe63115097eccc1161b5db
* Create a PHP version of jquery.spinnerEd Sanders2020-03-131-0/+68
Change-Id: I7622b08ec89525d24a4a1a755ffeee1aace9d382