mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-19 06:51:33 +02:00
[ticket/15342] free_space return float and throws exception
PHPBB3-15342
This commit is contained in:
@@ -390,13 +390,12 @@ class storage
|
||||
/**
|
||||
* Get space available in bytes.
|
||||
*
|
||||
* @throws \phpbb\storage\exception\exception When can't get available space
|
||||
* @throws \phpbb\storage\exception\exception When unable to retrieve available storage space
|
||||
*
|
||||
* @return mixed Returns available space or false when unable to retrieve available space
|
||||
* @return float Returns available space
|
||||
*/
|
||||
public function free_space()
|
||||
{
|
||||
return $this->get_adapter()->free_space();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user