Your project uses discouraged functions to kill scripts 2

More information: https://insight.symfony.com/what-we-analyse/php.use_exit_function

in src/FontMaker.php, line 117
  1. }
  2. private function error(string $message): never
  3. {
  4. $this->message($message, 'Error');
  5. exit(1);

    This line stops the execution flow, without explanation. If this is for debug, you should remove it. If this is to deal with an error, use exceptions instead.

    Time to fix: about 4 hours
    Read doc Open Issue Permalink
    Last edited by Laurent Muller
  6. }
  7. /**
  8. * @phpstan-param array<int, MapType> $map
  9. *
in src/makeFont.php, line 21
  1. $name = \basename(__FILE__, '.php');
  2. // @phpstan-ignore smaller.alwaysFalse
  3. if (\PHP_VERSION_ID < 80200) {
  4. echo "Error: $name requires PHP 8.2 or newer.";
  5. exit(1);

    This line stops the execution flow, without explanation. If this is for debug, you should remove it. If this is to deal with an error, use exceptions instead.

    Time to fix: about 4 hours
    Read doc Open Issue Permalink
    Last edited by Laurent Muller
  6. }
  7. require __DIR__ . '/../vendor/autoload.php';
  8. if (\PHP_SAPI === 'cli') {