Skip to content

Commit

Permalink
Updated Rector to commit 33e5cab
Browse files Browse the repository at this point in the history
rectorphp/rector-src@33e5cab [DowngradePhp80] Handle Throw Exception on DowngradeMatchToSwitchRector (#1019)
  • Loading branch information
TomasVotruba committed Oct 18, 2021
1 parent d24a956 commit cdbc308
Show file tree
Hide file tree
Showing 3,418 changed files with 16,412 additions and 16,406 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion bin/rector
@@ -1,5 +1,5 @@
#!/usr/bin/env php
<?php
namespace RectorPrefix20211017;
namespace RectorPrefix20211018;

require_once __DIR__ . '/rector.php';
22 changes: 11 additions & 11 deletions bin/rector.php
@@ -1,19 +1,19 @@
<?php

declare (strict_types=1);
namespace RectorPrefix20211017;
namespace RectorPrefix20211018;

use RectorPrefix20211017\Nette\Utils\Json;
use RectorPrefix20211018\Nette\Utils\Json;
use Rector\ChangesReporting\Output\JsonOutputFormatter;
use Rector\Core\Bootstrap\RectorConfigsResolver;
use Rector\Core\Configuration\Option;
use Rector\Core\Console\ConsoleApplication;
use Rector\Core\Console\Style\SymfonyStyleFactory;
use Rector\Core\DependencyInjection\RectorContainerFactory;
use Rector\Core\HttpKernel\RectorKernel;
use RectorPrefix20211017\Symfony\Component\Console\Command\Command;
use RectorPrefix20211017\Symfony\Component\Console\Input\ArgvInput;
use RectorPrefix20211017\Symplify\PackageBuilder\Reflection\PrivatesCaller;
use RectorPrefix20211018\Symfony\Component\Console\Command\Command;
use RectorPrefix20211018\Symfony\Component\Console\Input\ArgvInput;
use RectorPrefix20211018\Symplify\PackageBuilder\Reflection\PrivatesCaller;
// @ intentionally: continue anyway
@\ini_set('memory_limit', '-1');
// Performance boost
Expand All @@ -22,7 +22,7 @@
\gc_disable();
\define('__RECTOR_RUNNING__', \true);
// Require Composer autoload.php
$autoloadIncluder = new \RectorPrefix20211017\AutoloadIncluder();
$autoloadIncluder = new \RectorPrefix20211018\AutoloadIncluder();
$autoloadIncluder->includeDependencyOrRepositoryVendorAutoloadIfExists();
// load extracted PHPStan with its own preload.php
$extractedPhpstanAutoload = __DIR__ . '/../vendor/phpstan/phpstan-extracted/vendor/autoload.php';
Expand All @@ -45,18 +45,18 @@
$container = $rectorContainerFactory->createFromBootstrapConfigs($bootstrapConfigs);
} catch (\Throwable $throwable) {
// for json output
$argvInput = new \RectorPrefix20211017\Symfony\Component\Console\Input\ArgvInput();
$argvInput = new \RectorPrefix20211018\Symfony\Component\Console\Input\ArgvInput();
$outputFormat = $argvInput->getParameterOption('--' . \Rector\Core\Configuration\Option::OUTPUT_FORMAT);
// report fatal error in json format
if ($outputFormat === \Rector\ChangesReporting\Output\JsonOutputFormatter::NAME) {
echo \RectorPrefix20211017\Nette\Utils\Json::encode(['fatal_errors' => [$throwable->getMessage()]]);
echo \RectorPrefix20211018\Nette\Utils\Json::encode(['fatal_errors' => [$throwable->getMessage()]]);
} else {
// report fatal errors in console format
$symfonyStyleFactory = new \Rector\Core\Console\Style\SymfonyStyleFactory(new \RectorPrefix20211017\Symplify\PackageBuilder\Reflection\PrivatesCaller());
$symfonyStyleFactory = new \Rector\Core\Console\Style\SymfonyStyleFactory(new \RectorPrefix20211018\Symplify\PackageBuilder\Reflection\PrivatesCaller());
$symfonyStyle = $symfonyStyleFactory->create();
$symfonyStyle->error($throwable->getMessage());
}
exit(\RectorPrefix20211017\Symfony\Component\Console\Command\Command::FAILURE);
exit(\RectorPrefix20211018\Symfony\Component\Console\Command\Command::FAILURE);
}
/** @var ConsoleApplication $application */
$application = $container->get(\Rector\Core\Console\ConsoleApplication::class);
Expand Down Expand Up @@ -111,4 +111,4 @@ public function loadIfExistsAndNotLoadedYet(string $filePath) : void
require_once $filePath;
}
}
\class_alias('RectorPrefix20211017\\AutoloadIncluder', 'AutoloadIncluder', \false);
\class_alias('RectorPrefix20211018\\AutoloadIncluder', 'AutoloadIncluder', \false);
2 changes: 1 addition & 1 deletion config/config.php
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix20211017;
namespace RectorPrefix20211018;

use Rector\Core\Bootstrap\ExtensionConfigResolver;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
Expand Down
2 changes: 1 addition & 1 deletion config/parameters.php
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix20211017;
namespace RectorPrefix20211018;

use Rector\Caching\ValueObject\Storage\MemoryCacheStorage;
use Rector\Core\Configuration\Option;
Expand Down
2 changes: 1 addition & 1 deletion config/services-packages.php
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix20211017;
namespace RectorPrefix20211018;

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
Expand Down
2 changes: 1 addition & 1 deletion config/services-rules.php
@@ -1,7 +1,7 @@
<?php

declare (strict_types=1);
namespace RectorPrefix20211017;
namespace RectorPrefix20211018;

use Rector\Core\Configuration\Option;
use Rector\PSR4\Composer\PSR4NamespaceMatcher;
Expand Down

0 comments on commit cdbc308

Please sign in to comment.