Skip to content

Commit

Permalink
Adapt types of subclasses
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc authored and MichaIng committed Apr 1, 2023
1 parent ed863fb commit 1740311
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/private/Files/Storage/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ public function test() {
* get the free space in the storage
*
* @param string $path
* @return int|false
* @return int|float|false
*/
public function free_space($path) {
return \OCP\Files\FileInfo::SPACE_UNKNOWN;
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Files/Storage/DAV.php
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ public function touch($path, $mtime = null) {
/**
* @param string $path
* @param mixed $data
* @return int|false
* @return int|float|false
*/
public function file_put_contents($path, $data) {
$path = $this->cleanPath($path);
Expand Down
4 changes: 2 additions & 2 deletions lib/private/Files/Storage/Wrapper/Encoding.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public function file_get_contents($path) {
*
* @param string $path
* @param mixed $data
* @return int|false
* @return int|float|false
*/
public function file_put_contents($path, $data) {
return $this->storage->file_put_contents($this->findPathToUse($path), $data);
Expand Down Expand Up @@ -396,7 +396,7 @@ public function hash($type, $path, $raw = false) {
* see https://www.php.net/manual/en/function.free_space.php
*
* @param string $path
* @return int|bool
* @return int|float|bool
*/
public function free_space($path) {
return $this->storage->free_space($this->findPathToUse($path));
Expand Down
4 changes: 2 additions & 2 deletions lib/private/Files/Storage/Wrapper/Jail.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function file_get_contents($path) {
*
* @param string $path
* @param mixed $data
* @return int|false
* @return int|float|false
*/
public function file_put_contents($path, $data) {
return $this->getWrapperStorage()->file_put_contents($this->getUnjailedPath($path), $data);
Expand Down Expand Up @@ -335,7 +335,7 @@ public function hash($type, $path, $raw = false) {
* see https://www.php.net/manual/en/function.free_space.php
*
* @param string $path
* @return int|bool
* @return int|float|bool
*/
public function free_space($path) {
return $this->getWrapperStorage()->free_space($this->getUnjailedPath($path));
Expand Down
2 changes: 1 addition & 1 deletion lib/private/LargeFileHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function formatUnsignedInteger(int|float|string $number): string {
*
* @param string $filename Path to the file.
*
* @return null|int|float Number of bytes as number (float or int) or
* @return int|float Number of bytes as number (float or int) or
* null on failure.
*/
public function getFileSize(string $filename): null|int|float {
Expand Down

0 comments on commit 1740311

Please sign in to comment.