Commit graph

12 commits

Author SHA1 Message Date
Kunal Mehta ab601a2ca7 Upgrade to newer phan
Bug: T216933
Change-Id: If8a63da99343597b7f8c131f3656945eaf67d819
2019-03-16 22:39:09 -07:00
jenkins-bot 111c434c4e Merge "Enable string functions if running parser/PHPUnit tests" 2019-02-07 23:41:04 +00:00
Kunal Mehta 662734cc6f Enable string functions if running parser/PHPUnit tests
Instead of using a global variable specific to Wikimedia CI, always enable
string functions when running parser and PHPUnit tests.

Bug: T180192
Bug: T200650
Change-Id: I27764036e42800be437d69d96ce2b7bc1b1f7cb3
2019-02-07 01:59:13 +00:00
Alexia E. Smith cf1480cb96 Fix E_WARNING with {{#pos:}} if the offset is larger than the string
The mb_strpos() function throws E_WARNING if the offset is longer
than the length of the string.

Bug: T209600
Change-Id: Ib4296ba136eaf5c8461681e9d5f108118b2494f4
2018-11-15 12:50:32 -08:00
RazeSoldier d258457e01 Use "break" instead of "continue" inside a switch
"continue" statements in a switch are equivalent to "break". In PHP 7.3, will generate a warning.

Also change the indentation.

Bug: T206977
Change-Id: I8ad0ef6508e73bcca7dabfe2e88d661dd409bdfb
2018-10-15 15:45:06 +00:00
libraryupgrader 52c6ccb4a0 build: Updating mediawiki/mediawiki-codesniffer to 22.0.0
Change-Id: Ia5c70d201c26b6894b0f0f028a8838fcb72ef784
2018-09-03 06:58:49 +00:00
Aryeh Gregor cc6f6cd01c Don't call SpecialPageFactory methods statically
This is deprecated in 1.32. Bump minimum requirement of MediaWiki to
1.32 since this is a tarball-bundled extension.

Depends-On: Id8a92d57743f790b7d8c377c033cef38d1bb24de
Change-Id: Ie18c7c97405124ccaa3922b4a25fa7b40496039f
2018-08-17 11:04:59 -07:00
Aryeh Gregor a06cf6f41c Don't use deprecated MagicWord static methods
Bug: T200247
Change-Id: I62b5c87af33ae77d3e305de8b39374d7f18199fa
2018-08-01 11:45:04 +03:00
Kunal Mehta 26b8e44180 Remove & from $mwDefault variable assignment
There's no need for it to be a reference in the first place.

Bug: T200772
Change-Id: I1252d481103f3f0ce1ce28b59dcba746f7611598
2018-07-31 09:58:10 -07:00
libraryupgrader 7d78876400 build: Updating mediawiki/mediawiki-codesniffer to 20.0.0
Change-Id: I3bb3a973a23be71fd35e0a0a91c533a63ecef4f3
2018-05-26 05:31:24 +00:00
Umherirrender 37805a4fa0 Fix indent of elseif
Removed comments which breaks the elseif in "blocks"
and make phpcs unhappy

Change-Id: I4f05728659b4b7eff9bc2bd1bf90a5ac79244f11
2018-02-25 00:02:10 +00:00
Kunal Mehta 9f94cebdaa Move classes to includes/
Change-Id: Iefaa21bf911fa7dcf11aedd38648bed945b905f9
2018-02-24 14:06:58 -08:00