mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 22:38:42 +00:00
Fix types
This commit is contained in:
parent
2538587ecb
commit
e5d37591bf
|
|
@ -102,7 +102,7 @@ class File extends FileAbstract implements FileInterface
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public static function get(string $path) : /* ? */string
|
public static function get(string $path) : string
|
||||||
{
|
{
|
||||||
$temp = fopen('php://temp', 'r+');
|
$temp = fopen('php://temp', 'r+');
|
||||||
$http = new Http($path);
|
$http = new Http($path);
|
||||||
|
|
@ -116,7 +116,7 @@ class File extends FileAbstract implements FileInterface
|
||||||
|
|
||||||
fclose($temp);
|
fclose($temp);
|
||||||
|
|
||||||
return $content ?? null;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -227,7 +227,7 @@ class File extends FileAbstract implements FileInterface
|
||||||
|
|
||||||
fclose($con);
|
fclose($con);
|
||||||
|
|
||||||
return $owner;
|
return (int) $owner;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user