Rector 2.6.6 (hash bff669) · from 2026-09-10
 <?php
 
 declare(strict_types=1);
 
 namespace Symfony\Component\Console\Command;
 
 class Command
 {
     public const SUCCESS = 0;
 
     public const FAILURE = 1;
 }
 
 namespace App;
 
 use RuntimeException;
 use Symfony\Component\Console\Command\Command;
 use Throwable;
 
 final class SomeCommand extends Command
 {
     protected function execute(): int
     {
         try {
             if (random_int(0, 1) > 0) {
                 $value = 'a';
             } else {
                 throw new RuntimeException('nope');
             }
 
             echo $value;
 
             return self::SUCCESS;
             // @codeCoverageIgnoreStart
         } catch (Throwable $throwable) {
             echo $throwable->getMessage();
 
             return self::FAILURE;
         }
 
-        // @codeCoverageIgnoreEnd
+        // @codeCoverageIgnoreEnd
+        return 0;
     }
 }
Config rector.php