dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix and improve PHPDoc type hints in FileBackend and FileRepo
[lhc/web/wiklou.git]
/
includes
/
filerepo
/
file
/
ForeignAPIFile.php
diff --git
a/includes/filerepo/file/ForeignAPIFile.php
b/includes/filerepo/file/ForeignAPIFile.php
index
2a40942
..
be88b49
100644
(file)
--- a/
includes/filerepo/file/ForeignAPIFile.php
+++ b/
includes/filerepo/file/ForeignAPIFile.php
@@
-192,8
+192,8
@@
class ForeignAPIFile extends File {
}
/**
}
/**
- * @param
array
$metadata
- * @return
array
+ * @param
mixed
$metadata
+ * @return
mixed
*/
public static function parseMetadata( $metadata ) {
if ( !is_array( $metadata ) ) {
*/
public static function parseMetadata( $metadata ) {
if ( !is_array( $metadata ) ) {
@@
-254,7
+254,7
@@
class ForeignAPIFile extends File {
/**
* @param int $audience
/**
* @param int $audience
- * @param User $user
+ * @param User
|null
$user
* @return null|string
*/
public function getDescription( $audience = self::FOR_PUBLIC, User $user = null ) {
* @return null|string
*/
public function getDescription( $audience = self::FOR_PUBLIC, User $user = null ) {
@@
-333,7
+333,7
@@
class ForeignAPIFile extends File {
}
/**
}
/**
- * @return
array
+ * @return
string[]
*/
function getThumbnails() {
$dir = $this->getThumbPath( $this->getName() );
*/
function getThumbnails() {
$dir = $this->getThumbPath( $this->getName() );