| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
This allows the API to consistently return the new value for old rows.
Bug: T241709
Follow-Up: I36f49dc83718cc78f17fc340e6445030b8fd0c66
Change-Id: Ida69980f62a6ef070ba41b7e826967f424881716
|
|
|
|
|
|
|
|
| |
The column is now unused. It was used to prefill edit count in User
object before 83e1846 by use of User::newFromRow
Follow-Up: I1b78bad7e1fa43f5f82908567a7daad9c6cc79b9
Change-Id: Iec5eeaa8729a3add46c11cd62dee8aefe2e5e050
|
|
|
|
|
|
|
|
|
| |
Make phan stricter about conditional variable declaration
Remaining false positive issues are suppressed.
The suppression and the setting change can only be done together
Bug: T259172
Change-Id: I1f200ac37df7448453688bf464a8250c97313e5d
|
|
|
|
|
|
|
|
|
|
| |
Move the call to ActorStore::getUnknownActor to the code which calls it.
Avoid that static code analyzer see an possible undeclared actor store
Found by phan (T259172)
Bug: T259172
Change-Id: Ide978380726c60a35250ca67cd0adff603c971b1
|
|
|
|
|
|
|
|
|
|
|
| |
Make phan stricter about null types by setting null_casts_as_any_type to
false (the default in mediawiki-phan-config)
Remaining false positive issues are suppressed.
The suppression and the setting change can only be done together
Bug: T242536
Bug: T301991
Change-Id: I0f295382b96fb3be8037a01c10487d9d591e7e01
|
|
|
|
|
|
|
| |
build: Removes phan suppresses due to changed parse order of phan-taint
Bug: T283314
Change-Id: I616d1f8f62225210566d0ea5b9cc295fdc3e54fb
|
|
|
|
|
|
|
|
| |
Swap null/false or use real strings if needed
Found by phan strict checks
Change-Id: Id82ea609f05a76c5cb8c661d5cf2b7922d6cfbc1
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The functions returning null or the class property is set explict null.
Some function should not accept null or return null.
Found by phan strict checks
Change-Id: Ie50f23249282cdb18caa332f562a3945a58d86ff
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The tag wouldn't be treated as active, wouldn't be displayed
in changes lists and it wouldn't be possible to filter it,
although it was possible to create it.
The changes in ::modifyDisplayQuery are needed, because
ContribsPager may provide false.
Add a regression test for ::formatSummaryRow.
Bug: T296642
Change-Id: Iddb1e978387a0009425f6fad1821d9d15c0f5f23
|
|/
|
|
|
|
|
|
|
| |
Url query parameter sometimes contains integer,
which are not allowed on string[], just use array instead.
Found by phan strict checks
Change-Id: I7eabe69ee7a78ffee05413a022caec940672ae9f
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Some functions accept only string, cast ints and floats to string
* After preg_matches or explode() casts numbers to int to do maths
* Cast unix timestamps to int to do maths
* Cast return values from timestamp format function to int
* Cast bitwise operator to bool when needed as bool
* php internal functions like floor/round/ceil documented to return
float, most cases the result is used as int, added casts
Found by phan strict checks
Change-Id: Icb2de32107f43817acc45fe296fb77acf65c1786
|
|
|
|
| |
Change-Id: I2eb133a9e32116cd155f59086245bc4d15ecbfcc
|
|\ |
|
| |
| |
| |
| |
| |
| | |
Markup is changed slightly to allow using Html::warningBox().
Change-Id: I632e42ee9065b38dca443beae1cb01ef714cae7b
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
It turns out this gets rid of a bunch of suppressed
"SecurityCheck-DoubleEscaped" that appear to have been accurate
warnings.
There seems to have been some confusion about how ::truncateForVisual()
is supposed to be used; in particular it is to be passed *unescaped*
output, because it is not (generally speaking) safe to truncate
HTML-escaped strings. The goal of ::truncateForVisual() is to have
a specific number of codepoints in the output for display purposes,
the encoding of those codepoints is not an issue (htmlspecialchars
can be applied to the *return value*.) If you need a specific number
of *bytes* you should be using ::truncateForDatabase(). If you want
a certain number of *HTML bytes* then the ::truncateHtml() method
is probably what you want.
Slightly refactor some code in RevDelLogItem to avoid a false positive.
Bug: T301205
Bug: T290624
Change-Id: I893362e049aedfa699043fcf27caf4815196f748
|
|/
|
|
|
| |
Bug: T300184
Change-Id: I6e9356a6cc3b9df9b508c3d37a0b9b75d6825efd
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In all cases that rc_actor is not given the function returns an
unknown actor as ActorStore::newActorFromRowFields() throw
exception in that cases. It is too strict because, for instance,
RecentChange::newLogEntry() does not provide the attribute.
This changes it.
Bug: T286979
Change-Id: I5668053c30c18755536bfcb98524e79eb2827dda
|
| |
| |
| |
| | |
Change-Id: I84ce3a22e1f764f9797d40ca540a10492cbed151
|
| |
| |
| |
| |
| |
| |
| |
| | |
When the called function has a doc of int, it should be cast to be
explicit here.
Also cast for arithmetic operations to be explicit about the number
Change-Id: I905b78dfb66e66443e0e3203488bab5b548db543
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Automatically refactors wg prefixed globals to use MediaWikiServices config using Rector. Doesn't include files that set globals or files that fail CI.
Rector Gist: https://gist.github.com/tchin25/7cc54f6d23aedef010b22e4dfbead228
* This patch uses a modified source code rector library for our specific use case and the rector will have different effects without it.
A writeup for future reference is here: https://meta.wikimedia.org/wiki/User:TChin_(WMF)/Using_Rector_On_MediaWiki
Change-Id: I1a691f01cd82e60bf41207d32501edb4b9835e37
|
| |
| |
| |
| | |
Change-Id: I2d1bdb7531ff5126114a391550c2615ea6e244b3
|
| |
| |
| |
| | |
Change-Id: I3deb34aec51504e09b20a367a93ebe863335be26
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
These special pages and their counter-part APIs are:
- Special:RecentChanges
- Special:Watchlist
- Special:Log
- Special:Contributions
This also changes the way MAX_EXECUTION_TIME works from taking the value
as milliseconds, it takes seconds which is more intuitive for users.
Bug: T297708
Depends-On: I126e7181422d8da1a63afc3717faa4f72a687dd9
Change-Id: I3ff78751c3df3b6342f1865d35c2075f4415185d
|
| |
| |
| |
| |
| |
| |
| |
| | |
The i18n part of T20361 / ec0dd5b adds new log parameter,
logs from before the changes are needed to work with the formatter.
Bug: T289806
Change-Id: I096bc14373cbe038671fc33f651af7e005998a3b
|
| |
| |
| |
| |
| | |
Bug: T42786
Change-Id: I8bda0c281e1f4abbffbddb80ac74a6d61a034d28
|
|/
|
|
|
| |
Bug: T254646
Change-Id: I096b2cf738a1395a14f1d47bcbed0c2c686c2581
|
|\ |
|
| |
| |
| |
| | |
Change-Id: Ia84f5b1f210396cba5daa7b9e8bb8c4069e0171d
|
|/
|
|
|
|
|
| |
It seems all references to them assume the values as booleans.
Code search: https://codesearch.wmcloud.org/deployed/?q=%5C%24this-%3E(plaintext%7Circtext)&i=nope&files=LogFormatter(test)%3F%5C.php&excludeFiles=&repos=
Change-Id: I9bde1f7b1cac0ba9c0b002fd1b57a4407a4912ce
|
|
|
|
|
|
|
|
|
|
| |
This helps phan to detect unreachable code and also impossible types
after the functions.
It helps phan to avoid false positives for array keys
when the keys are checked before
Bug: T240141
Change-Id: I895f70e82b3053a46cd44135b15437e6f82a07b2
|
|
|
|
|
|
|
| |
Addition and remove of suppression needs to be done with the version
update.
Change-Id: I3288b3cefa744b507eadebb67b8ab08c86517c1c
|
|
|
|
|
|
|
|
|
| |
Each Skin is a IContextSource, which makes the instanceof checks in the
constructor not needed.
Follows-up 265dd5d23c2 (I4e2dd5d3ab64) and 9712def7 (I6dde2a23d).
Change-Id: Ibfb271bf61d03086433a9bb7b0e1081f01298615
|
|
|
|
|
|
| |
Its a string, not an int
Change-Id: I70fc0f4c5f8f476843380c87126964e5de7f3d59
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
This was deprecated since 9712def7 but never raised deprecation
warnings. No code is using the old parameters
Change-Id: I4e2dd5d3ab64743fde89698fb986a2883aa9eb57
|
| |
| |
| |
| |
| |
| |
| |
| | |
Note: this contains a b/c incompatible change to
SlotRoleHandler, but it's never used in any extensions
and never was used.
Change-Id: I898ab18467f7f8c605a579cc6236859b9d86c7f5
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
composer:
* mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0
The following sniffs now pass and were enabled:
* Generic.ControlStructures.InlineControlStructure
* MediaWiki.PHPUnit.AssertCount.NotUsed
npm:
* svgo: 2.3.0 → 2.3.1
* https://npmjs.com/advisories/1754 (CVE-2021-33587)
Change-Id: I2a9bbee2fecbf7259876d335f565ece4b3622426
|
| |
| |
| |
| |
| | |
Bug: T254646
Change-Id: I63cc8895033714bdfbf09aee933a8f0a43b387f3
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
LogFormatter::styleRestricedElement has been deprecated in favor
of ::styleRestrictedElement in order to fix the typo in the
method name.
Bug: T286408
Change-Id: I27df9dab4dcc34594332c22b70348558f9e66fca
|
| |
| |
| |
| | |
Change-Id: Ia2c4819848f5d23d5ceb74aae9c6c5920b8851ba
|
| |
| |
| |
| |
| |
| |
| | |
It's not an issue anymore and keeping such hard-coded index is harmful
Bug: T270620
Change-Id: I9198c29aa5e773a7521711ce4ef089a208f241ed
|
|/
|
|
|
|
|
|
| |
setWrapperLegendMsg and setSubmitTextMsg are calling Message::text
Replacing setSubmitText + Message::text with setSubmitTextMsg makes the
code easier to read
Change-Id: I73389991fea82e1927027dc95c3debc3d8c15939
|
|
|
|
|
| |
Bug: T282457
Change-Id: I7c14054570bc6d7d93344499e6521703b8010621
|
|
|
|
| |
Change-Id: Ib86399445a77d3005f23ae87d87f3cf742b13b1f
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
label-message is using Message::parse, changing 'label-raw' with parse
to label-message is a noop, but easier to read.
Change-Id: I374142562cba591e15061df2640e5898770a10e5
|