Fix types

This commit is contained in:
Dennis Eichhorn 2017-11-20 12:16:23 +01:00
parent 2538587ecb
commit e5d37591bf

View File

@ -102,7 +102,7 @@ class File extends FileAbstract implements FileInterface
/**
* {@inheritdoc}
*/
public static function get(string $path) : /* ? */string
public static function get(string $path) : string
{
$temp = fopen('php://temp', 'r+');
$http = new Http($path);
@ -116,7 +116,7 @@ class File extends FileAbstract implements FileInterface
fclose($temp);
return $content ?? null;
return $content;
}
/**
@ -227,7 +227,7 @@ class File extends FileAbstract implements FileInterface
fclose($con);
return $owner;
return (int) $owner;
}
/**