We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf95a2e commit f9af8a2Copy full SHA for f9af8a2
src/Twig/AppExtension.php
@@ -40,7 +40,7 @@ public function getFunctions(): array
40
];
41
}
42
43
- public function humanFilesize(int $size, int $precision = 2): string
+ public function humanFilesize(?int $size, int $precision = 2): string
44
{
45
static $units = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
46
$step = 1024;
0 commit comments