Skip to content

Commit 9368502

Browse files
committed
drop return type declaration
The configured memory limit can exceed the range that can be represented by an integer.
1 parent bfae515 commit 9368502

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Component/HttpKernel/DataCollector/MemoryDataCollector.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ public function getName()
9393
return 'memory';
9494
}
9595

96-
private function convertToBytes(string $memoryLimit): int
96+
/**
97+
* @return int|float
98+
*/
99+
private function convertToBytes(string $memoryLimit)
97100
{
98101
if ('-1' === $memoryLimit) {
99102
return -1;

0 commit comments

Comments
 (0)