Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vimeo/psalm
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5.7.6
Choose a base ref
...
head repository: vimeo/psalm
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5.7.7
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Feb 25, 2023

  1. Don't crash on empty jit_buffer_size

    Fixes #9396
    weirdan committed Feb 25, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    weirdan Bruce Weirdan
    Copy the full SHA
    38d1abc View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e028ba4 View commit details
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Psalm/Internal/Fork/PsalmRestarter.php
4 changes: 4 additions & 0 deletions src/Psalm/Internal/Fork/PsalmRestarter.php
Original file line number Diff line number Diff line change
@@ -87,6 +87,10 @@ protected function requiresRestart($default): bool

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)) {