From 2b6c376414d625ce9ac18c81e49613315894fd90 Mon Sep 17 00:00:00 2001 From: Reedy Date: Tue, 10 Nov 2020 21:11:33 +0000 Subject: [PATCH] Upgrade mediawiki-codesniffer for php7.3 support Bug: T236070 Change-Id: I69a3c8a43c36f3389f7c575c26e9b5a7c358896e --- composer.json | 2 +- src/ReplaceTextUtils.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 17019b96..cdb082db 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "require-dev": { "jakub-onderka/php-parallel-lint": "1.0.0", - "mediawiki/mediawiki-codesniffer": "18.0.0", + "mediawiki/mediawiki-codesniffer": "19.1.0", "jakub-onderka/php-console-highlighter": "0.3.2", "mediawiki/minus-x": "0.3.1", "mediawiki/mediawiki-phan-config": "0.2.0" diff --git a/src/ReplaceTextUtils.php b/src/ReplaceTextUtils.php index 796e366e..c7694011 100644 --- a/src/ReplaceTextUtils.php +++ b/src/ReplaceTextUtils.php @@ -25,7 +25,7 @@ class ReplaceTextUtils { /** * Shim for compatibility * @param Title $title to link to - * @param string $text to show + * @param string|null $text to show * @return string HTML for link */ public static function link( Title $title, $text = null ) {