Skip to content

Commit

Permalink
Remove Assertion::isInstanceOf call from Configuration class (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
tereschenkov authored Apr 6, 2020
1 parent ee7a0dd commit 77c8ba8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

namespace SpomkyLabs\LexikJoseBundle\DependencyInjection;

use Assert\Assertion;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
Expand All @@ -27,7 +26,7 @@ public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('lexik_jose');
$rootNode = $treeBuilder->getRootNode();
Assertion::isInstanceOf($rootNode, ArrayNodeDefinition::class, 'Invalid root node');

$rootNode
->addDefaultsIfNotSet()
->children()
Expand Down

0 comments on commit 77c8ba8

Please sign in to comment.