mediawiki-extensions-Scribunto/includes
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
..
Engines Replace empty() with falsy check 2023-10-21 23:30:25 +02:00
Hooks Create HookRunner class and the hook handler interfaces 2023-06-19 21:39:33 +00:00
ApiScribuntoConsole.php Replace some moved Title class uses, now MediaWiki\Title\Title 2023-08-19 12:22:05 +00:00
CodeEditorHooks.php Use HookHandlers for CodeEditor hook 2023-08-15 13:50:13 +02:00
Hooks.php Assign UUIDs to Scribunto errors independent of page parse order 2023-10-13 15:23:22 +00:00
Scribunto.php Replace empty() with isset() 2023-10-21 20:38:47 +02:00
ScribuntoContent.php Start namespacing extension 2022-05-12 01:33:11 +00:00
ScribuntoContentHandler.php ScribuntoContentHandler: Fix Phan suppressions 2023-12-01 22:37:57 +00:00
ScribuntoEngineBase.php Ensure that Scribunto exceptions have a page context set 2023-11-27 14:08:12 +00:00
ScribuntoException.php Ensure that Scribunto exceptions have a page context set 2023-11-27 14:08:12 +00:00
ScribuntoModuleBase.php Start namespacing extension 2022-05-12 01:33:11 +00:00