Skip to content

Commit

Permalink
[Autoloading] Using SimpleParameterProvider on BootstrapFilesIncluder (
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik authored Jul 25, 2023
1 parent 6231beb commit 665bc65
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Autoloading/BootstrapFilesIncluder.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Nette\Neon\Neon;
use PHPStan\DependencyInjection\Container;
use Rector\Core\Configuration\Option;
use Rector\Core\Configuration\Parameter\ParameterProvider;
use Rector\Core\Configuration\Parameter\SimpleParameterProvider;
use Rector\Core\Exception\ShouldNotHappenException;
use Rector\NodeTypeResolver\DependencyInjection\PHPStanExtensionsConfigResolver;
use RecursiveDirectoryIterator;
Expand All @@ -27,7 +27,6 @@ final class BootstrapFilesIncluder
private array $configCache = [];

public function __construct(
private readonly ParameterProvider $parameterProvider,
private readonly PHPStanExtensionsConfigResolver $phpStanExtensionsConfigResolver,
) {
}
Expand All @@ -49,7 +48,7 @@ public function includePHPStanExtensionsBoostrapFiles(?Container $container = nu
*/
public function includeBootstrapFiles(): void
{
$bootstrapFiles = $this->parameterProvider->provideArrayParameter(Option::BOOTSTRAP_FILES);
$bootstrapFiles = SimpleParameterProvider::provideArrayParameter(Option::BOOTSTRAP_FILES);

Assert::allString($bootstrapFiles);

Expand Down

0 comments on commit 665bc65

Please sign in to comment.