Skip to content

Commit

Permalink
assert paths are string
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Apr 7, 2022
1 parent c04ce87 commit 1f9e16e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/Config/RectorConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Rector\Core\Configuration\Option;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Webmozart\Assert\Assert;

/**
* @api
Expand All @@ -19,6 +20,8 @@ final class RectorConfig extends ContainerConfigurator
*/
public function paths(array $paths): void
{
Assert::allString($paths);

$parameters = $this->parameters();
$parameters->set(Option::PATHS, $paths);
}
Expand Down

0 comments on commit 1f9e16e

Please sign in to comment.