mediawiki-extensions-AbuseF.../includes/special
Daimona Eaytoy f0539e0c1e Represent new filters with null instead of 'new'
PHP is not strongly typed, so it's not a good idea to use scalars of
different types (here it's an integer vs the string 'new') to represent
different possibilities. This can have bad effects when type juggling
occurs, and it's also harder to figure out what the type of the
parameter can be (because a numeric ID might have been passed as a
string). Using integer vs null avoids all of this, and also allows us to
use nullable typehints.

These changes were partly copied from
If981cb35bf19a8469aa6c43c907e107cf8c65bc2 and should help with the
migration to the Filter value objects.

Change-Id: I8837d46c3c33761fea53f67b530b721dc7bd49b0
2020-10-10 12:23:50 +02:00
..
AbuseFilterSpecialPage.php Move link to /import in a button on ViewList 2020-09-18 14:59:00 +00:00
SpecialAbuseFilter.php Represent new filters with null instead of 'new' 2020-10-10 12:23:50 +02:00
SpecialAbuseLog.php Hide filter group selector when filter selector is hidden 2020-10-09 13:33:13 +00:00