Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanenko3 committed Aug 27, 2022
1 parent 541faa5 commit 937d639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function rglob($pattern)
}

if (!function_exists('formatMemory')) {
function formatMemory(float $size, int $level = 0, int $precision = 2, int $base = 1024, $asArray = false): string
function formatMemory(float $size, int $level = 0, int $precision = 2, int $base = 1024, $asArray = false): string|array
{
$unit = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
$times = floor(log($size, $base));
Expand Down

0 comments on commit 937d639

Please sign in to comment.