mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Merge branch '5.7.x' into master
This commit is contained in:
commit
59e549d2e8
@ -87,6 +87,10 @@ class PsalmRestarter extends XdebugHandler
|
||||
|
||||
private static function toBytes(string $value): int
|
||||
{
|
||||
if (strlen($value) === 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
$unit = strtolower($value[strlen($value) - 1]);
|
||||
|
||||
if (in_array($unit, ['g', 'm', 'k'], true)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user