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:
commit
a8a9e69488
@ -93,7 +93,10 @@ class MemoryDataCollector extends DataCollector implements LateDataCollectorInte
|
|||||||
return 'memory';
|
return 'memory';
|
||||||
}
|
}
|
||||||
|
|
||||||
private function convertToBytes(string $memoryLimit): int
|
/**
|
||||||
|
* @return int|float
|
||||||
|
*/
|
||||||
|
private function convertToBytes(string $memoryLimit)
|
||||||
{
|
{
|
||||||
if ('-1' === $memoryLimit) {
|
if ('-1' === $memoryLimit) {
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user