Skip to content

Commit 0f32963

Browse files
committed
add missing return type declarations
1 parent 34b3cfd commit 0f32963

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

system/Files/File.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ public function getDestination(string $destination, string $delimiter = '_', int
216216
return $destination;
217217
}
218218

219+
/**
220+
* @return false|int|string
221+
*/
219222
protected function getSizeByUnitInternal(int $fileSizeBase, FileSizeUnit $unit, int $precision)
220223
{
221224
$exponent = $unit->value;

tests/system/Files/FileTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ public function testGetDestination(): void
172172
unlink(SYSTEMPATH . 'Common_Copy_5.php');
173173
}
174174

175+
/**
176+
* @return Array<string, Array<int>>
177+
*/
175178
public static function provideGetSizeData()
176179
{
177180
return [

0 commit comments

Comments
 (0)