Skip to content

Commit

Permalink
check
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Dec 16, 2023
1 parent b08f22e commit 2e6595a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/NodeFactory/Service/ServiceOptionNodeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Symplify\PhpConfigPrinter\Contract\Converter\ServiceOptionsKeyYamlToPhpFactoryInterface;
use Symplify\PhpConfigPrinter\ServiceOptionAnalyzer\ServiceOptionAnalyzer;
use Symplify\PhpConfigPrinter\ValueObject\YamlServiceKey;
use Webmozart\Assert\Assert;

final class ServiceOptionNodeFactory
{
Expand All @@ -18,6 +19,8 @@ public function __construct(
private readonly ServiceOptionAnalyzer $serviceOptionAnalyzer,
private readonly iterable $serviceOptionKeyYamlToPhpFactories
) {
Assert::notEmpty($serviceOptionKeyYamlToPhpFactories);
Assert::allIsInstanceOf($serviceOptionKeyYamlToPhpFactories, ServiceOptionsKeyYamlToPhpFactoryInterface::class);
}

/**
Expand Down

0 comments on commit 2e6595a

Please sign in to comment.