Fix mismatching docblock return types

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2020-03-06 16:33:01 +01:00
parent ed81337461
commit df9e2b828a
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
6 changed files with 18 additions and 8 deletions

View File

@ -91,7 +91,9 @@ interface IVersionBackend {
* @param IUser $user
* @param FileInfo $sourceFile
* @param int|string $revision
* @return ISimpleFile
*
* @return File
*
* @since 15.0.0
*/
public function getVersionFile(IUser $user, FileInfo $sourceFile, $revision): File;

View File

@ -38,7 +38,8 @@ class Version16000Date20190212081545 extends SimpleMigrationStep {
* @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @param array $options
* @return null|ISchemaWrapper
*
* @return ISchemaWrapper
*/
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ISchemaWrapper {
/** @var ISchemaWrapper $schema */

View File

@ -129,7 +129,9 @@ class AllConfig implements \OCP\IConfig {
*
* @param string $key the key of the value, under which it was saved
* @param mixed $default the default value to be returned if the value isn't set
* @return mixed the value or $default
*
* @return bool
*
* @since 16.0.0
*/
public function getSystemValueBool(string $key, bool $default = false): bool {
@ -141,7 +143,9 @@ class AllConfig implements \OCP\IConfig {
*
* @param string $key the key of the value, under which it was saved
* @param mixed $default the default value to be returned if the value isn't set
* @return mixed the value or $default
*
* @return int
*
* @since 16.0.0
*/
public function getSystemValueInt(string $key, int $default = 0): int {
@ -153,7 +157,9 @@ class AllConfig implements \OCP\IConfig {
*
* @param string $key the key of the value, under which it was saved
* @param mixed $default the default value to be returned if the value isn't set
* @return mixed the value or $default
*
* @return string
*
* @since 16.0.0
*/
public function getSystemValueString(string $key, string $default = ''): string {

View File

@ -55,7 +55,7 @@ class EnforcementState implements JsonSerializable {
}
/**
* @return string[]
* @return bool
*/
public function isEnforced(): bool {
return $this->enforced;

View File

@ -400,7 +400,8 @@ class Database extends ABackend
* get the number of disabled users in a group
*
* @param string $search
* @return int|bool
*
* @return int
*/
public function countDisabledInGroup(string $gid): int {
$this->fixDI();

View File

@ -317,7 +317,7 @@ class Session implements IUserSession, Emitter {
}
/**
* @return mixed
* @return null|string
*/
public function getImpersonatingUserID(): ?string {