Skip to content

Commit

Permalink
[NodeTypeResolver] Remove nestedChainMethodCallLimit() for deep metho…
Browse files Browse the repository at this point in the history
…d call counter check (#4504)
  • Loading branch information
samsonasik committed Jul 13, 2023
1 parent acfb19c commit 295a01c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 79 deletions.
1 change: 0 additions & 1 deletion config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@
$rectorConfig->indent(' ', 4);

$rectorConfig->fileExtensions(['php']);
$rectorConfig->nestedChainMethodCallLimit(120);

$rectorConfig->cacheDirectory(sys_get_temp_dir() . '/rector_cached_files');
$rectorConfig->containerCacheDirectory(sys_get_temp_dir());
Expand Down
8 changes: 0 additions & 8 deletions packages/Config/RectorConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,14 +271,6 @@ public function fileExtensions(array $extensions): void
SimpleParameterProvider::setParameter(Option::FILE_EXTENSIONS, $extensions);
}

public function nestedChainMethodCallLimit(int $limit): void
{
$parameters = $this->parameters();
$parameters->set(Option::NESTED_CHAIN_METHOD_CALL_LIMIT, $limit);

SimpleParameterProvider::setParameter(Option::NESTED_CHAIN_METHOD_CALL_LIMIT, $limit);
}

public function cacheDirectory(string $directoryPath): void
{
// cache directory path is created via mkdir in CacheFactory
Expand Down

This file was deleted.

6 changes: 0 additions & 6 deletions src/Configuration/Option.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,6 @@ final class Option
*/
public const FILE_EXTENSIONS = 'file_extensions';

/**
* @internal Use RectorConfig::nestedChainMethodCallLimit() instead
* @var string
*/
public const NESTED_CHAIN_METHOD_CALL_LIMIT = 'nested_chain_method_call_limit';

/**
* @internal Use RectorConfig::cacheDirectory() instead
* @var string
Expand Down

0 comments on commit 295a01c

Please sign in to comment.