From b0103abfedf15cceeaaf4fec2551b1b9dbb05f37 Mon Sep 17 00:00:00 2001 From: Florian Date: Thu, 21 Nov 2019 17:46:18 +0100 Subject: [PATCH] Fix type after upgrading to phpunit 7 See I77ea560f4a5344bd1c356ecc3e7857968ad829b8 Change-Id: Ie9c83cf44e6555a9ae1f3182fdc3cc4269329fa7 --- tests/phpunit/engines/LuaCommon/LuaEngineTestBase.php | 4 ++-- tests/phpunit/engines/LuaCommon/LuaEngineUnitTestBase.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/engines/LuaCommon/LuaEngineTestBase.php b/tests/phpunit/engines/LuaCommon/LuaEngineTestBase.php index cebb31b2..ce981b98 100644 --- a/tests/phpunit/engines/LuaCommon/LuaEngineTestBase.php +++ b/tests/phpunit/engines/LuaCommon/LuaEngineTestBase.php @@ -76,7 +76,7 @@ abstract class Scribunto_LuaEngineTestBase extends MediaWikiLangTestCase { return Title::newMainPage(); } - public function toString() { + public function toString(): string { // When running tests written in Lua, return a nicer representation in // the failure message. if ( $this->luaTestName ) { @@ -144,7 +144,7 @@ class Scribunto_LuaEngineTestSkip extends PHPUnit\Framework\TestCase { } } - public function toString() { + public function toString(): string { return $this->className; } } diff --git a/tests/phpunit/engines/LuaCommon/LuaEngineUnitTestBase.php b/tests/phpunit/engines/LuaCommon/LuaEngineUnitTestBase.php index bbc1089e..3baeb9f9 100644 --- a/tests/phpunit/engines/LuaCommon/LuaEngineUnitTestBase.php +++ b/tests/phpunit/engines/LuaCommon/LuaEngineUnitTestBase.php @@ -68,7 +68,7 @@ abstract class Scribunto_LuaEngineUnitTestBase extends \PHPUnit\Framework\TestCa parent::tearDown(); } - public function toString() { + public function toString(): string { // When running tests written in Lua, return a nicer representation in // the failure message. if ( $this->luaTestName ) {