aboutsummaryrefslogtreecommitdiffstats
path: root/includes/filerepo/file/ArchivedFile.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/filerepo/file/ArchivedFile.php')
-rw-r--r--includes/filerepo/file/ArchivedFile.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/filerepo/file/ArchivedFile.php b/includes/filerepo/file/ArchivedFile.php
index 90997e2217cd..b95bd4d522e1 100644
--- a/includes/filerepo/file/ArchivedFile.php
+++ b/includes/filerepo/file/ArchivedFile.php
@@ -702,7 +702,7 @@ class ArchivedFile {
* passed to the $audience parameter
* @return UserIdentity|null
*/
- public function getUploader( int $audience = self::FOR_PUBLIC, Authority $performer = null ): ?UserIdentity {
+ public function getUploader( int $audience = self::FOR_PUBLIC, ?Authority $performer = null ): ?UserIdentity {
$this->load();
if ( $audience === self::FOR_PUBLIC && $this->isDeleted( File::DELETED_USER ) ) {
return null;
@@ -725,7 +725,7 @@ class ArchivedFile {
* passed to the $audience parameter
* @return string
*/
- public function getDescription( int $audience = self::FOR_PUBLIC, Authority $performer = null ): string {
+ public function getDescription( int $audience = self::FOR_PUBLIC, ?Authority $performer = null ): string {
$this->load();
if ( $audience === self::FOR_PUBLIC && $this->isDeleted( File::DELETED_COMMENT ) ) {
return '';