Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferror committed Dec 21, 2023
1 parent 6e3c2df commit ada56c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ includes:
- vendor/phpstan/phpstan-phpunit/rules.neon

parameters:
level: 6
level: 5
paths:
- src
- tests
5 changes: 4 additions & 1 deletion src/Symfony/Bundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Ferror\OpenapiCoverage\Symfony;

use Ferror\OpenapiCoverage\Symfony\Console\CheckCoverageCommand;
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\Config\Definition\Configurator\DefinitionConfigurator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
Expand All @@ -27,7 +28,9 @@ public function loadExtension(array $config, ContainerConfigurator $container, C

public function configure(DefinitionConfigurator $definition): void
{
$definition->rootNode()
/** @var ArrayNodeDefinition $root */
$root = $definition->rootNode();
$root
->children()
->arrayNode('excluded_routes')
->scalarPrototype()->end()
Expand Down

0 comments on commit ada56c7

Please sign in to comment.