Pārlūkot izejas kodu

rector update 2

Vincent 2 gadi atpakaļ
vecāks
revīzija
f687c7743b
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1 1
      rector.php
  2. 1 1
      src/Commands/CronCommand.php

+ 1 - 1
rector.php

@@ -18,7 +18,7 @@ return static function (RectorConfig $rectorConfig): void {
     $rectorConfig->symfonyContainerXml(__DIR__ . '/var/cache/docker/App_KernelDockerDebugContainer.xml');
 
     $rectorConfig->sets([
-        SymfonySetList::SYMFONY_60,
+        \Rector\Symfony\Set\SymfonyLevelSetList::UP_TO_SYMFONY_60,
         SymfonySetList::SYMFONY_CODE_QUALITY,
         SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
     ]);

+ 1 - 1
src/Commands/CronCommand.php

@@ -143,7 +143,7 @@ class CronCommand extends Command
             $results[] = $this->runJob($job, $preview);
         }
 
-        return max($results); // If there is one failure result, the whole command is shown as a failure too
+        return (int) max($results); // If there is one failure result, the whole command is shown as a failure too
     }
 
     /**