drop return type declaration

The configured memory limit can exceed the range that can be represented
by an integer.
This commit is contained in:
Christian Flothmann 2019-11-22 14:14:59 +01:00
parent bfae515d52
commit 93685026b0
1 changed files with 4 additions and 1 deletions

View File

@ -93,7 +93,10 @@ class MemoryDataCollector extends DataCollector implements LateDataCollectorInte
return 'memory';
}
private function convertToBytes(string $memoryLimit): int
/**
* @return int|float
*/
private function convertToBytes(string $memoryLimit)
{
if ('-1' === $memoryLimit) {
return -1;