aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáté Szabó <mszabo@wikia-inc.com>2020-11-26 19:02:57 +0100
committerMáté Szabó <mszabo@wikia-inc.com>2020-11-26 19:02:57 +0100
commit40d50dd2fca03dc3161ae4ed5b63de0d92d87260 (patch)
tree82275dc7841a4d11126417d27b64dcc7a2b4c231
parentecf05b59d70cc3042dc3f1e3240bee13e2b10744 (diff)
downloadmediawikicore-40d50dd2fca03dc3161ae4ed5b63de0d92d87260.tar.gz
mediawikicore-40d50dd2fca03dc3161ae4ed5b63de0d92d87260.zip
tests: Fix method signature mismatches
These cause fatals on PHP 8. Bug: T248925 Change-Id: Ifc8536e99f4676180d47df483e55c89e9f834c32
-rw-r--r--tests/phpunit/includes/parser/CacheTimeTest.php2
-rw-r--r--tests/phpunit/includes/parser/ParserOutputTest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/phpunit/includes/parser/CacheTimeTest.php b/tests/phpunit/includes/parser/CacheTimeTest.php
index 8603e5d100ae..6dab91d2f266 100644
--- a/tests/phpunit/includes/parser/CacheTimeTest.php
+++ b/tests/phpunit/includes/parser/CacheTimeTest.php
@@ -33,7 +33,7 @@ class CacheTimeTest extends MediaWikiIntegrationTestCase {
* Overrides SerializationTestTrait::getClassToTest
* @return string
*/
- protected function getClassToTest() {
+ protected function getClassToTest(): string {
return CacheTime::class;
}
diff --git a/tests/phpunit/includes/parser/ParserOutputTest.php b/tests/phpunit/includes/parser/ParserOutputTest.php
index 1108ab714625..abf952e73a1c 100644
--- a/tests/phpunit/includes/parser/ParserOutputTest.php
+++ b/tests/phpunit/includes/parser/ParserOutputTest.php
@@ -31,7 +31,7 @@ class ParserOutputTest extends MediaWikiLangTestCase {
* Overrides SerializationTestTrait::getClassToTest
* @return string
*/
- protected function getClassToTest() {
+ protected function getClassToTest(): string {
return ParserOutput::class;
}