diff options
author | libraryupgrader <tools.libraryupgrader@tools.wmflabs.org> | 2021-07-22 03:11:47 +0000 |
---|---|---|
committer | DannyS712 <dannys712.wiki@gmail.com> | 2021-07-22 03:36:05 +0000 |
commit | 5357695270161bce1f6dbaccc96645791f17a013 (patch) | |
tree | 7e960bac35ef0f4a1bb940a1e09822169b8d5622 /includes/title/NamespaceInfo.php | |
parent | a4fa292eade4be075d3b0e986d92c74e613295fc (diff) | |
download | mediawikicore-5357695270161bce1f6dbaccc96645791f17a013.tar.gz mediawikicore-5357695270161bce1f6dbaccc96645791f17a013.zip |
build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0
The following sniffs now pass and were enabled:
* Generic.ControlStructures.InlineControlStructure
* MediaWiki.PHPUnit.AssertCount.NotUsed
npm:
* svgo: 2.3.0 → 2.3.1
* https://npmjs.com/advisories/1754 (CVE-2021-33587)
Change-Id: I2a9bbee2fecbf7259876d335f565ece4b3622426
Diffstat (limited to 'includes/title/NamespaceInfo.php')
-rw-r--r-- | includes/title/NamespaceInfo.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/title/NamespaceInfo.php b/includes/title/NamespaceInfo.php index d216601bb70a..a77f1aafe011 100644 --- a/includes/title/NamespaceInfo.php +++ b/includes/title/NamespaceInfo.php @@ -220,7 +220,7 @@ class NamespaceInfo { * @throws MWException if $target doesn't have talk pages, e.g. because it's in NS_SPECIAL, * because it's a relative section-only link, or it's an interwiki link. */ - public function getTalkPage( LinkTarget $target ) : LinkTarget { + public function getTalkPage( LinkTarget $target ): LinkTarget { if ( $target->getText() === '' ) { throw new MWException( 'Can\'t determine talk page associated with relative section link' ); } @@ -284,7 +284,7 @@ class NamespaceInfo { * @param LinkTarget $target * @return LinkTarget Subject page for $target */ - public function getSubjectPage( LinkTarget $target ) : LinkTarget { + public function getSubjectPage( LinkTarget $target ): LinkTarget { if ( $this->isSubject( $target->getNamespace() ) ) { return $target; } @@ -315,7 +315,7 @@ class NamespaceInfo { * page * @throws MWException if $target's namespace doesn't have talk pages (e.g., NS_SPECIAL) */ - public function getAssociatedPage( LinkTarget $target ) : LinkTarget { + public function getAssociatedPage( LinkTarget $target ): LinkTarget { if ( $target->getText() === '' ) { throw new MWException( 'Can\'t determine talk page associated with relative section link' ); } |