aboutsummaryrefslogtreecommitdiffstats
path: root/includes/upload
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2022-07-31 02:02:18 +0200
committerUmherirrender <umherirrender_de.wp@web.de>2022-11-03 18:55:47 +0100
commit1b342a889388da44c084809e65854f307a009ba9 (patch)
tree4a9f766a6fa70cd155f6586b1d6546d52002289a /includes/upload
parent5b703126e52c417d870f81d935bfa1d452d559da (diff)
downloadmediawikicore-1b342a889388da44c084809e65854f307a009ba9.tar.gz
mediawikicore-1b342a889388da44c084809e65854f307a009ba9.zip
Various doc fixes about false and null on method arguments/return types
Doc-only changes Change-Id: Ice974b3ba41708859dfe646e94b31c5ebbf26410
Diffstat (limited to 'includes/upload')
-rw-r--r--includes/upload/UploadBase.php10
-rw-r--r--includes/upload/UploadFromChunks.php4
-rw-r--r--includes/upload/UploadFromStash.php4
3 files changed, 9 insertions, 9 deletions
diff --git a/includes/upload/UploadBase.php b/includes/upload/UploadBase.php
index 3c77e9896292..911f0dddfe7f 100644
--- a/includes/upload/UploadBase.php
+++ b/includes/upload/UploadBase.php
@@ -61,7 +61,7 @@ abstract class UploadBase {
protected $mRemoveTempFile;
/** @var string|null */
protected $mSourceType;
- /** @var Title|bool|null */
+ /** @var Title|false|null */
protected $mTitle = false;
/** @var int */
protected $mTitleError = 0;
@@ -331,7 +331,7 @@ abstract class UploadBase {
/**
* @param string $srcPath The source path
- * @return string|bool The real path if it was a virtual URL Returns false on failure
+ * @return string|false The real path if it was a virtual URL Returns false on failure
*/
public function getRealPath( $srcPath ) {
$repo = MediaWikiServices::getInstance()->getRepoGroup()->getLocalRepo();
@@ -2029,7 +2029,7 @@ abstract class UploadBase {
* - The file looks like a thumbnail and the original exists
*
* @param File $file The File object to check
- * @return array|bool False if the file does not exist, else an array
+ * @return array|false False if the file does not exist, else an array
*/
public static function getExistsWarning( $file ) {
if ( $file->exists() ) {
@@ -2246,7 +2246,7 @@ abstract class UploadBase {
*
* @param UserIdentity $user
* @param string $statusKey
- * @return Status[]|bool
+ * @return Status[]|false
*/
public static function getSessionStatus( UserIdentity $user, $statusKey ) {
$store = self::getUploadSessionStore();
@@ -2264,7 +2264,7 @@ abstract class UploadBase {
*
* @param UserIdentity $user
* @param string $statusKey
- * @param array|bool $value
+ * @param array|false $value
* @return void
*/
public static function setSessionStatus( UserIdentity $user, $statusKey, $value ) {
diff --git a/includes/upload/UploadFromChunks.php b/includes/upload/UploadFromChunks.php
index dc8340eacf8b..a483508db95b 100644
--- a/includes/upload/UploadFromChunks.php
+++ b/includes/upload/UploadFromChunks.php
@@ -50,8 +50,8 @@ class UploadFromChunks extends UploadFromFile {
* Setup local pointers to stash, repo and user (similar to UploadFromStash)
*
* @param User $user
- * @param UploadStash|bool $stash Default: false
- * @param FileRepo|bool $repo Default: false
+ * @param UploadStash|false $stash Default: false
+ * @param FileRepo|false $repo Default: false
*/
public function __construct( User $user, $stash = false, $repo = false ) {
$this->user = $user;
diff --git a/includes/upload/UploadFromStash.php b/includes/upload/UploadFromStash.php
index 56ee1fff284b..91f6f00f09fe 100644
--- a/includes/upload/UploadFromStash.php
+++ b/includes/upload/UploadFromStash.php
@@ -44,8 +44,8 @@ class UploadFromStash extends UploadBase {
/**
* @param UserIdentity|null $user Default: null Sometimes this won't exist, as when running from cron.
- * @param UploadStash|bool $stash Default: false
- * @param FileRepo|bool $repo Default: false
+ * @param UploadStash|false $stash Default: false
+ * @param FileRepo|false $repo Default: false
*/
public function __construct( UserIdentity $user = null, $stash = false, $repo = false ) {
if ( $repo ) {