Skip to content

Commit dadc96d

Browse files
committed
Php Inspections (EA Extended) - static code analysis includes:
Reduce couple count calls in [Yaml] Modernize type casting, fix several strict comparisons Unsets merged Elvis operator usage Short syntax for applied operations
1 parent 3c2503e commit dadc96d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DataCollector/MemoryDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private function convertToBytes($memoryLimit)
8686
} elseif (0 === strpos($max, '0')) {
8787
$max = intval($max, 8);
8888
} else {
89-
$max = intval($max);
89+
$max = (int) $max;
9090
}
9191

9292
switch (substr($memoryLimit, -1)) {

0 commit comments

Comments
 (0)