Skip to content

Commit

Permalink
refactor: Fix invalid usages of "whitelist" (#872)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Nov 1, 2023
1 parent 4c427ad commit dc487ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Configuration/ConfigurationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ final class ConfigurationFactory

public function __construct(
private readonly Filesystem $fileSystem,
private readonly SymbolsConfigurationFactory $configurationWhitelistFactory,
private readonly SymbolsConfigurationFactory $symbolsConfigurationFactory,
) {
}

Expand Down Expand Up @@ -91,7 +91,7 @@ public function create(?string $path = null, array $paths = []): Configuration
array_unshift($patchers, new SymfonyParentTraitPatcher());
array_unshift($patchers, new ComposerPatcher());

$symbolsConfiguration = $this->configurationWhitelistFactory->createSymbolsConfiguration($config);
$symbolsConfiguration = $this->symbolsConfigurationFactory->createSymbolsConfiguration($config);

$finders = self::retrieveFinders($config);
$filesFromPaths = self::retrieveFilesFromPaths($paths);
Expand Down
2 changes: 1 addition & 1 deletion tests/Scoper/Symfony/XmlScoperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ public static function provideXmlFiles(): iterable
</services>
</container>
XML,
[], // Whitelisting global classes in the service definitions is not supported at the moment. Provide a PR
[], // Excluded global classes in the service definitions is not supported at the moment. Provide a PR
// if you are willing to add support for it.
];

Expand Down
2 changes: 1 addition & 1 deletion tests/Scoper/Symfony/YamlScoperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ class: 'Humbug\Acme\Bar\X'
Closure: ~
YAML,
[], // Whitelisting global classes in the service definitions is not supported at the moment. Provide a PR
[], // Excluded global classes in the service definitions is not supported at the moment. Provide a PR
// if you are willing to add support for it.
];

Expand Down

0 comments on commit dc487ce

Please sign in to comment.