Skip to content

Commit

Permalink
Modernize types casting
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasReker committed Dec 24, 2018
1 parent 33b71ca commit b0ca060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/UpgradeTools/CoreUpgrader/CoreUpgrader.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ protected function initConstants()
$memory_limit = ini_get('memory_limit');
if ((substr($memory_limit, -1) != 'G')
&& ((substr($memory_limit, -1) == 'M' and substr($memory_limit, 0, -1) < 512)
|| is_numeric($memory_limit) and (intval($memory_limit) < 131072))
|| is_numeric($memory_limit) and ((int) $memory_limit < 131072))
) {
@ini_set('memory_limit', '512M');
}
Expand Down

0 comments on commit b0ca060

Please sign in to comment.