rector/config/parameters.php
Tomas Votruba 2037399677 Updated Rector to commit 04981badaadd4a5950b85cea5a39b9c03cb28c68
04981badaa Rename ReflectionAstResolver to simple AstResolver (#300)
2021-06-26 11:50:38 +00:00

27 lines
1.5 KiB
PHP

<?php
declare (strict_types=1);
namespace RectorPrefix20210626;
use Rector\Core\Configuration\Option;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
$parameters = $containerConfigurator->parameters();
// paths and extensions
$parameters->set(\Rector\Core\Configuration\Option::PATHS, []);
$parameters->set(\Rector\Core\Configuration\Option::FILE_EXTENSIONS, ['php']);
$parameters->set(\Rector\Core\Configuration\Option::AUTOLOAD_PATHS, []);
// these files will be executed, useful e.g. for constant definitions
$parameters->set(\Rector\Core\Configuration\Option::BOOTSTRAP_FILES, []);
// FQN class importing
$parameters->set(\Rector\Core\Configuration\Option::AUTO_IMPORT_NAMES, \false);
$parameters->set(\Rector\Core\Configuration\Option::IMPORT_SHORT_CLASSES, \true);
$parameters->set(\Rector\Core\Configuration\Option::IMPORT_DOC_BLOCKS, \true);
$parameters->set(\Rector\Core\Configuration\Option::PHP_VERSION_FEATURES, null);
$parameters->set(\Rector\Core\Configuration\Option::NESTED_CHAIN_METHOD_CALL_LIMIT, 30);
$parameters->set(\Rector\Core\Configuration\Option::SKIP, []);
$parameters->set(\Rector\Core\Configuration\Option::PHPSTAN_FOR_RECTOR_PATH, null);
// cache
$parameters->set(\Rector\Core\Configuration\Option::CACHE_DIR, \sys_get_temp_dir() . '/rector_cached_files');
};