Skip to content

Commit 34b3cfd

Browse files
committed
add missing param declarations
1 parent 857da2a commit 34b3cfd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

system/Files/File.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ public function getSize()
7373
/**
7474
* Retrieve the file size by unit, calculated in IEC standards with 1024 as base value.
7575
*
76+
* @param FileSizeUnit $unit
77+
* @phpstan-param positive-int $precision
7678
* @return false|int|string
7779
*/
7880
public function getSizeByUnitBinary(FileSizeUnit $unit = FileSizeUnit::B, int $precision = 3)
@@ -83,6 +85,8 @@ public function getSizeByUnitBinary(FileSizeUnit $unit = FileSizeUnit::B, int $p
8385
/**
8486
* Retrieve the file size by unit, calculated in metric standards with 1000 as base value.
8587
*
88+
* @param FileSizeUnit $unit
89+
* @phpstan-param positive-int $precision
8690
* @return false|int|string
8791
*/
8892
public function getSizeByUnitMetric(FileSizeUnit $unit = FileSizeUnit::B, int $precision = 3)

0 commit comments

Comments
 (0)