mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-19 18:34:38 +02:00
Fixed some deprecations.
This commit is contained in:
parent
4fa8eef1bf
commit
5fd608f42a
59 changed files with 202 additions and 165 deletions
|
@ -163,11 +163,11 @@ class AttachmentManager
|
|||
* Returns a human readable version of the attachment file size.
|
||||
* For external attachments, null is returned.
|
||||
*
|
||||
* @param int $decimals The number of decimals numbers that should be printed
|
||||
* @param int $decimals The number of decimals numbers that should be printed
|
||||
*
|
||||
* @return string|null A string like 1.3M
|
||||
*/
|
||||
public function getHumanFileSize(Attachment $attachment, $decimals = 2): ?string
|
||||
public function getHumanFileSize(Attachment $attachment, int $decimals = 2): ?string
|
||||
{
|
||||
$bytes = $this->getFileSize($attachment);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue