bug #34516 [HttpKernel] drop return type declaration (xabbuh)

This PR was merged into the 4.4 branch.

Discussion
----------

[HttpKernel] drop return type declaration

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #34508
| License       | MIT
| Doc PR        |

The configured memory limit can exceed the range that can be represented
by an integer.

Commits
-------

93685026b0 drop return type declaration
This commit is contained in:
Fabien Potencier 2019-11-22 15:33:57 +01:00
commit a8a9e69488
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;