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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy