aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/ApiBlockTest.php
diff options
context:
space:
mode:
authorThiemo Kreuz <thiemo.kreuz@wikimedia.de>2021-01-14 09:20:36 +0100
committerUmherirrender <umherirrender_de.wp@web.de>2021-01-14 19:02:00 +0000
commitac205fa84c4bf3250bbcd612863061491d6a3a2d (patch)
tree9271a24e7594b9c248f91689bbf780350f2625dc /tests/phpunit/includes/api/ApiBlockTest.php
parent567e4365189ad5fcd14764f24b6042a6a2fb109f (diff)
downloadmediawikicore-ac205fa84c4bf3250bbcd612863061491d6a3a2d.tar.gz
mediawikicore-ac205fa84c4bf3250bbcd612863061491d6a3a2d.zip
Fix incomplete/bogus PHPDoc tags in various tests
Most of these are found by the not yet released I10559d8. I remove the type MockObject in some cases when the calling code really does not need to know if he get's a mock or the real thing. However, I do this only in places that are very closely related to the fixes. Change-Id: I26a4c3c5a8ae141bf56161b52b54bce7e68f2e30
Diffstat (limited to 'tests/phpunit/includes/api/ApiBlockTest.php')
-rw-r--r--tests/phpunit/includes/api/ApiBlockTest.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/phpunit/includes/api/ApiBlockTest.php b/tests/phpunit/includes/api/ApiBlockTest.php
index 7911bafb3350..1be5d2935dc5 100644
--- a/tests/phpunit/includes/api/ApiBlockTest.php
+++ b/tests/phpunit/includes/api/ApiBlockTest.php
@@ -35,8 +35,7 @@ class ApiBlockTest extends ApiTestCase {
/**
* @param array $extraParams Extra API parameters to pass to doApiRequest
- * @param User $blocker User to do the blocking, null to pick
- * arbitrarily
+ * @param User|null $blocker User to do the blocking, null to pick arbitrarily
* @return array result of doApiRequest
*/
private function doBlock( array $extraParams = [], User $blocker = null ) {