File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
src/DependencyInjection/Compiler Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change
1
+ parameters :
2
+ level : 5
3
+ paths :
4
+ - src/
5
+ - tests/
6
+
7
+ includes :
8
+ - vendor/phpstan/phpstan-deprecation-rules/rules.neon
9
+ - vendor/phpstan/phpstan-phpunit/extension.neon
10
+ - vendor/phpstan/phpstan-phpunit/rules.neon
11
+ - vendor/phpstan/phpstan-symfony/extension.neon
12
+ - vendor/phpstan/phpstan-symfony/rules.neon
Original file line number Diff line number Diff line change 2
2
3
3
namespace Stof \DoctrineExtensionsBundle \DependencyInjection \Compiler ;
4
4
5
+ use Stof \DoctrineExtensionsBundle \DependencyInjection \StofDoctrineExtensionsExtension ;
5
6
use Symfony \Component \DependencyInjection \ContainerBuilder ;
6
7
use Symfony \Component \DependencyInjection \Compiler \CompilerPassInterface ;
7
8
@@ -23,6 +24,9 @@ class ValidateExtensionConfigurationPass implements CompilerPassInterface
23
24
*/
24
25
public function process (ContainerBuilder $ container )
25
26
{
26
- $ container ->getExtension ('stof_doctrine_extensions ' )->configValidate ($ container );
27
+ $ extension = $ container ->getExtension ('stof_doctrine_extensions ' );
28
+ \assert ($ extension instanceof StofDoctrineExtensionsExtension);
29
+
30
+ $ extension ->configValidate ($ container );
27
31
}
28
32
}
You can’t perform that action at this time.
0 commit comments