wiki.techinc.nl/includes/parser
Arthur Taylor 9ae964fde7 Add static return type for ParserOutput::getExternalLinks
PHPUnit tests that mock the ParserOutput object are unable to
correctly infer that the mock should return an empty array rather
than null for `getExternalLinks`. This is currently causing test
failures in SpamBlacklist in CI.

Add the return type definition to the function field definition
so that PHPUnit has a better chance at doing the right thing.

Note that `getExternalLinks` returns `$this->mExternalLinks` by
reference; if there’s some existing code which reassigns a non-array
value to that reference (and, consequently, to `$this->mExternalLinks`,
such code will start to throw TypeErrors during the assignment.

Bug: T376633
Change-Id: I246d5541200c9d0c405f30ea9de091ff9c0e759c
2024-10-08 09:51:23 +02:00
..
Hook
Parsoid Provide a prefixed StatsFactory in parsoid config 2024-10-04 18:54:33 +00:00
BlockLevelPass.php parser: Add missing documentation to class properties 2024-09-07 22:46:08 +02:00
CacheTime.php Rename JsonUnserial… to JsonDeserial… 2024-06-12 14:50:58 -04:00
CoreMagicVariables.php parser: Add a new {{USERLANGUAGE}} magic word for use in wikitext 2024-09-07 19:16:32 +00:00
CoreParserFunctions.php Switch over a bunch of class_alias uses to actuals 2024-10-03 17:09:36 +00:00
CoreTagHooks.php Switch over a bunch of class_alias uses to actuals 2024-10-03 17:09:36 +00:00
DateFormatter.php
DateFormatterFactory.php
LinkHolderArray.php Move Language and friends into Language namespace 2024-08-10 13:36:30 +02:00
MagicWord.php Move Language and friends into Language namespace 2024-08-10 13:36:30 +02:00
MagicWordArray.php
MagicWordFactory.php parser: Add a new {{USERLANGUAGE}} magic word for use in wikitext 2024-09-07 19:16:32 +00:00
MWTidy.php
Parser.php Merge "Add namespace to remaining parts of Wikimedia\ObjectCache" 2024-10-03 14:02:47 +00:00
ParserCache.php Add namespace to the root classes of ObjectCache 2024-07-10 00:14:54 +03:30
ParserCacheFactory.php Add namespace to remaining parts of Wikimedia\ObjectCache 2024-09-27 16:19:10 -04:00
ParserCacheFilter.php
ParserCacheMetadata.php
ParserFactory.php Add namespace to remaining parts of Wikimedia\ObjectCache 2024-09-27 16:19:10 -04:00
ParserObserver.php Move remaining four classes in includes/content into Content namespace 2024-08-10 10:40:53 +02:00
ParserOptions.php Add namespace to remaining parts of Wikimedia\ObjectCache 2024-09-27 16:19:10 -04:00
ParserOutput.php Add static return type for ParserOutput::getExternalLinks 2024-10-08 09:51:23 +02:00
ParserOutputFlags.php
ParserOutputStringSets.php
PPCustomFrame_Hash.php
PPDPart_Hash.php
PPDStack_Hash.php Merge "parser: Add missing documentation to class properties" 2024-09-12 23:24:39 +00:00
PPDStackElement_Hash.php
PPFrame.php
PPFrame_Hash.php Use namespaced classes (3) 2024-06-16 20:26:43 +02:00
PPNode.php
PPNode_Hash_Array.php Add "implements Stringable" to every class with "function __toString()" 2024-06-13 00:23:39 +00:00
PPNode_Hash_Attr.php Add "implements Stringable" to every class with "function __toString()" 2024-06-13 00:23:39 +00:00
PPNode_Hash_Text.php Add "implements Stringable" to every class with "function __toString()" 2024-06-13 00:23:39 +00:00
PPNode_Hash_Tree.php Add "implements Stringable" to every class with "function __toString()" 2024-06-13 00:23:39 +00:00
PPTemplateFrame_Hash.php
Preprocessor.php Add namespace to remaining parts of Wikimedia\ObjectCache 2024-09-27 16:19:10 -04:00
Preprocessor_Hash.php Add namespace to remaining parts of Wikimedia\ObjectCache 2024-09-27 16:19:10 -04:00
RemexRemoveTagHandler.php
RemexStripTagHandler.php parser: Add missing documentation to class properties 2024-09-07 22:46:08 +02:00
RevisionOutputCache.php Add namespace to remaining parts of Wikimedia\ObjectCache 2024-09-27 16:19:10 -04:00
Sanitizer.php Hard deprecating wfUrlProtocols 2024-09-05 19:16:19 +03:30
StripState.php Merge "parser: Add missing documentation to class properties" 2024-09-12 23:24:39 +00:00