Go to file
Bartosz Dziewoński ae8c68b051 ScribuntoContentHandler: Fix Phan suppressions
Title::castFromPageReference() and similar methods can return null
instead of Title when the parameter is null. Although that could not
happen in this code, there is no way to tell that to Phan, so
suppressions were required to avoid its warnings about possible nulls.

Instead, since MW 1.41, we can just use Title::newFromPageReference(),
which can't return null (and doesn't accept null as the parameter).
See also Ida4da75953cf3bca372a40dc88022443109ca0cb in MediaWiki core.

Change-Id: Ia3c415cdd68fe4b19869aa8eb8e816e707bb5ad6
2023-12-01 22:37:57 +00:00
.phan Use HookHandlers for CodeEditor hook 2023-08-15 13:50:13 +02:00
i18n Localisation updates from https://translatewiki.net. 2023-11-27 08:33:11 +01:00
includes ScribuntoContentHandler: Fix Phan suppressions 2023-12-01 22:37:57 +00:00
modules Assign UUIDs to Scribunto errors independent of page parse order 2023-10-13 15:23:22 +00:00
tests Ensure that Scribunto exceptions have a page context set 2023-11-27 14:08:12 +00:00
.eslintrc.json build: Updating mediawiki/mediawiki-phan-config to 0.10.4 2020-11-20 17:01:25 +00:00
.gitignore build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint 2019-05-07 10:40:41 -07:00
.gitreview Whoops, track not trace 2016-10-24 17:03:31 -07:00
.phpcs.xml tests: Replace assertEmpty with assertCount 2022-11-25 10:26:34 +00:00
.stylelintrc.json Use json extension for .stylelintrc 2017-08-19 10:27:54 +02:00
CODE_OF_CONDUCT.md build: Updating mediawiki/mediawiki-codesniffer to 22.0.0 2018-09-03 21:33:35 +00:00
composer.json build: Updating dependencies 2023-04-29 10:08:46 +00:00
COPYING Add strict.lua to replace "Module:No globals" 2022-10-13 04:39:21 +00:00
extension.json build: Update MediaWiki requirement to 1.41 2023-08-19 14:05:01 +08:00
Gruntfile.js build: Updating dependencies 2021-01-30 10:41:13 +00:00
package-lock.json build: Updating npm dependencies 2023-06-02 02:13:44 +00:00
package.json build: Updating npm dependencies 2023-06-02 02:13:44 +00:00
Scribunto.constants.php Remove PHP entry point 2019-06-21 00:02:08 +00:00
Scribunto.magic.php Add namespace and magic word translations for mnw and my 2019-10-18 20:03:05 +00:00
Scribunto.namespaces.php Translate Scribunto namespaces into Uzbek (uz) 2023-05-24 22:19:24 +00:00