Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9368502

Browse filesBrowse 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
Copy full SHA for 9368502

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/DataCollector/MemoryDataCollector.php
+4-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.