Commit graph

1418 commits

Author SHA1 Message Date
Brad Jorsch a54087abee Remove unreachable code path
The $options parameter to ScribuntoContent::fillParserOutput() is
typehinted as `ParserOptions` and is not nullable, so the code path for
`!$options` will never be reached.

Also fix the @param doc to match.

Bug: T194263
Change-Id: I254a583b7f7ddd1797aa40f0ddfb973161185a49
2018-07-11 18:43:52 +00:00
jenkins-bot ea0c6d614d Merge "Get rid of call_user_func_array()" 2018-07-04 03:58:20 +00:00
Max Semenik eb8ccf03db Get rid of call_user_func_array()
Yay PHP7!

Change-Id: I777ed78d22efbddacaab22c4614a0defa6ad3f94
2018-07-03 19:40:19 -07:00
Translation updater bot 1975cd96a7 Localisation updates from https://translatewiki.net.
Change-Id: I0aefbc258926d2f12193f4857a5e8e05c75f422e
2018-06-27 22:20:12 +02:00
Translation updater bot 4c38fd4711 Localisation updates from https://translatewiki.net.
Change-Id: I83327d3a9a2232ecdcac1cb99c97707a18ada393
2018-06-24 22:26:00 +02:00
Translation updater bot 70979e9298 Localisation updates from https://translatewiki.net.
Change-Id: Ib9a163aed7bec4da5f7a2928c05148c7559e928b
2018-06-21 22:42:45 +02:00
Translation updater bot ceeed31a7b Localisation updates from https://translatewiki.net.
Change-Id: Icd526fe1080ce744157bef8d898bb81a660cfe2d
2018-06-16 22:26:23 +02:00
Translation updater bot 721f01fc7a Localisation updates from https://translatewiki.net.
Change-Id: Ifd5d5b6522250b58787b59bb23b02ff58521e2c7
2018-06-11 22:34:20 +02:00
jenkins-bot cdc5646f0c Merge "build: Updating mediawiki/mediawiki-phan-config to 0.3.0" 2018-06-08 18:28:59 +00:00
libraryupgrader f694518df8 build: Updating mediawiki/mediawiki-phan-config to 0.3.0
Change-Id: I9d1ee6e54a1f48469cb6438af726e067ab60ce87
2018-06-08 07:49:07 +00:00
Kunal Mehta df7666aab6 Don't use deprecated Interwiki static method
Change-Id: If6d8681c84be4820724468f92c6f3cdb65a11736
2018-06-07 11:40:08 -07:00
Translation updater bot 71701d2983 Localisation updates from https://translatewiki.net.
Change-Id: I623dfaa9868d3098d6d089f3b162cfe80d7b4b87
2018-06-02 22:41:39 +02:00
jenkins-bot 3162912421 Merge "Add @covers tags to all tests" 2018-05-29 19:02:25 +00:00
Kunal Mehta d91a8cf8a0 Add @covers tags to all tests
Bug: T195160
Change-Id: I77ce544e9c166fef6c6fb02f67d1de6ddf0c2465
2018-05-29 11:37:27 -07:00
Translation updater bot 56e5766d49 Localisation updates from https://translatewiki.net.
Change-Id: Id23502004ec3af569ede1c4056cf5b3f1137134b
2018-05-28 22:42:38 +02:00
libraryupgrader c88d231aed build: Updating mediawiki/mediawiki-codesniffer to 20.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Usage.ForbiddenFunctions.popen
* MediaWiki.Usage.ForbiddenFunctions.proc_open
* MediaWiki.Usage.ForbiddenFunctions.shell_exec

Change-Id: I39e352194565a5526c1a8a34992c028fb305b03b
2018-05-26 06:18:46 +00:00
Kunal Mehta f76ba3c465 Disable Squiz.Classes.ValidClassName.NotCamelCaps globally
Instead of per-file. This happens to also fix a false positive with the
PhpunitAnnotations sniff.

Change-Id: I22621c37217ed2db9d8b3591df1a1421c25fa7f6
2018-05-24 22:26:11 -07:00
Translation updater bot 478c2a6221 Localisation updates from https://translatewiki.net.
Change-Id: If759e616f98e49b481560eb1258edfa092cbb58e
2018-05-23 22:20:23 +02:00
Brad Jorsch 32718af677 ustring: Handle invalid types in gsub
If the replacement table or function results in a value that isn't a
string or number (or nil), string.gsub raises an error. Have ustring
raise the same error.

Bug: T195326
Change-Id: Ic36f9f5d7adc0c14e7a4a94d3747335107acd8b6
2018-05-22 18:55:49 -04:00
Translation updater bot 131af4d277 Localisation updates from https://translatewiki.net.
Change-Id: I67b8a1f2300805df232effe92b166b4db50c4798
2018-05-20 22:44:36 +02:00
Translation updater bot ba357cff4f Localisation updates from https://translatewiki.net.
Change-Id: Ia991c716a89e99965e746c0a0a00fdf6899feaea
2018-05-19 22:20:04 +02:00
Translation updater bot 96dfe06857 Localisation updates from https://translatewiki.net.
Change-Id: I0c36293945548421122eb401e3cfb4d98650ebf7
2018-05-16 23:07:58 +02:00
Kunal Mehta d245edbb94 Add phan configuration
Manually import LuaSandbox's git repository as a composer dependency to
provide the PHP stubs for phan.

Change-Id: I6226b9211f31d829da5a2775c6f5cf3599dd8ebc
2018-05-14 18:41:59 -07:00
Translation updater bot 68212f5cc3 Localisation updates from https://translatewiki.net.
Change-Id: Iaec0b9470f013bd3ecf2b6ea59569a847e27fb89
2018-05-06 22:22:47 +02:00
Translation updater bot a250202bc7 Localisation updates from https://translatewiki.net.
Change-Id: I44cea06be21225920d89ae3d91725a896e730057
2018-05-03 22:21:49 +02:00
Martin Urbanec a81d7d90bb Localize into inh
Bug: T184512
Change-Id: Ifc6c92ce730d82082be5094db9a58667d20f7c14
2018-05-03 13:43:48 +00:00
Translation updater bot 0f8f298ad8 Localisation updates from https://translatewiki.net.
Change-Id: I127b03cbbe1fdac860275a2a4bbf189f94502111
2018-04-30 22:22:30 +02:00
Martin Urbanec f96af727f5 Localize Scribunto namespaces into lfn
Bug: T184516
Change-Id: I1e171a9ca7836988afbd8c4028393e4d300ed94b
2018-04-23 12:50:24 +02:00
jenkins-bot fb06f727f7 Merge "Update at-ease calls" 2018-04-18 18:47:16 +00:00
Gergő Tisza 8fb655258d Fix SyntaxHighlight incompatibility
The class existence check Scribunto used to tell apart current and
B/C versions of SyntaxHighlight does not work with recent versions.
This caused the B/C branch to be invoked unnecessarily, which
resulted in deprecation warnings.

Also, the supposedly non-B/C branch also invoked B/C code which has
no error handling.

The commit removes B/C support and adds a new way of interacting with
SyntaxHighlight.

Bug: T109873
Change-Id: I2d518b5412efbe4e8ddb43e7c465ea55dc44b1a3
2018-04-18 16:46:17 +00:00
Reedy 73f21a1155 Update at-ease calls
Bug: T187037
Change-Id: I9b681cf900a3aaf1be3e688d12e3e83f44bff91b
2018-04-18 14:31:04 +00:00
Brad Jorsch 6be48e2f7a Update ustring data tables
normalization-data.lua is updated to Unicode 8.0.0 (libicu57).

charsets.lua is updated to match the character classes used by PCRE 8.35,
which seems to be Unicode 6.3.0.

upper.lua and lower.lua are still based on whatever ancient version of
Unicode is used by mb_strtoupper and mb_strtolower in HHVM 3.18.6.

Bug: T177498
Change-Id: I00b471176e1fd21123c22d187ff222928819e459
2018-04-16 00:09:59 -07:00
libraryupgrader 55391e75ee build: Updating mediawiki/mediawiki-codesniffer to 18.0.0
Change-Id: I9fd09d38314811555b92ad92d6847892ad3150cb
2018-04-14 05:57:25 +00:00
Jayprakash12345 7da38c8e10 Update extensions to take advantage of parser test autodiscovery
Bug: T170037
Change-Id: Ifeffbf7a27dfd4915998159617d37d4d9b9a1c17
2018-04-13 15:07:17 +00:00
jenkins-bot 3ed4367352 Merge "Drop support for generating normalization tables with MW < 1.25" 2018-04-11 13:11:55 +00:00
jenkins-bot cdfddebc15 Merge "Move classes into includes/" 2018-04-11 13:11:54 +00:00
Translation updater bot 9e3d8328d1 Localisation updates from https://translatewiki.net.
Change-Id: I3ab4680669d1dfb34a44237bfbb8beca2af76af5
2018-04-10 22:15:40 +02:00
Kunal Mehta f26ecf167d Drop support for generating normalization tables with MW < 1.25
Change-Id: Id9370c2bcab06a22515c6d94bd380f7dc46e81d0
2018-04-09 08:54:22 -07:00
Kunal Mehta 1fad4da137 Move classes into includes/
Change-Id: Ida2c9cac348fe31ecf8d8c0a352e899bcbff1ebf
2018-04-09 08:54:22 -07:00
Gergő Tisza 2664e63038
Use CodeEditor and SyntaxHighlight when available
There is no reason not to default to using these when they are there.

Bug: T191737
Change-Id: Id1b918a538a45c1279e3e4ad87b2a40f8d41478d
2018-04-09 11:28:34 +02:00
Translation updater bot cb5a396fcd Localisation updates from https://translatewiki.net.
Change-Id: I1bc77eefedde716bcdc337c3870977353f3e92f9
2018-04-07 22:34:39 +02:00
Umherirrender b64e49de99 Fix parameter docs
* Remove @return from __construct
* Declare nullable parameter in @param
* Remove @return from getSoftwareInfo

Change-Id: I037eec0e74ac11e22a3a32ca183cb67e27ce8cd6
2018-04-05 13:09:10 +02:00
Mark A. Hershberger d6a081415e
Use MediaWiki\SuppressWarnings around trigger_error('') instead @
The @ sign requires @codingStandardsIgnoreLine Generic.PHP.NoSilencedErrors.Discouraged

\MediaWiki\suppressWarnings() doesn't need a @codingStandardsIgnoreLine.

Bug: T191247
Change-Id: I8ce2a49c9327a452cf5fa64f96c7cde55702bf28
2018-04-03 17:56:52 -04:00
MacFan4000 a51e3c3ee8 Update LuaSandbox link on Special:Version
Change-Id: Ib014036230674b5b3325a289d57c056aa376f7bd
2018-04-02 21:33:56 +00:00
Translation updater bot 90e7eb352c Localisation updates from https://translatewiki.net.
Change-Id: I314da0310300304fed97a525711c9546a1492fdc
2018-04-01 09:39:13 +02:00
libraryupgrader 7973dff09a build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.PhpunitAnnotations.NotTestClass

The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment

Change-Id: I56ea06397c7c2b586cc9dca2425535eb565ea231
2018-03-29 05:35:12 +00:00
Translation updater bot ee928717b6 Localisation updates from https://translatewiki.net.
Change-Id: I1fd387e3586c90d9e3248b8d0182527b91fdd670
2018-03-24 22:29:39 +01:00
Translation updater bot 53cbdf07f4 Localisation updates from https://translatewiki.net.
Change-Id: I3f7553fe92f3be240c0a7b6c8e7daf2d9f8841da
2018-03-23 22:13:18 +01:00
Thiemo Mättig 856217d7ad Stop using deprecated class from UtfNormal library
Change-Id: I966a68c52eb4a59d91dc8a597c364f4e1ac44073
2018-03-22 11:06:15 +01:00
Translation updater bot da15d0b15a Localisation updates from https://translatewiki.net.
Change-Id: Ice4d4c23a553e8036b6015a9ad2ad8703cd58cdf
2018-03-19 22:19:56 +01:00