Skip to content

Commit 197c4cf

Browse files
jeroennotenondrejmirtes
authored andcommitted
Fix false positive "Service ... is private." when using KernelTestCase::$container
1 parent edb55af commit 197c4cf

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

extension.neon

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ parameters:
99
constant_hassers: true
1010
console_application_loader: null
1111
stubFiles:
12+
- stubs/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.stub
13+
- stubs/Symfony/Bundle/FrameworkBundle/Test/TestContainer.stub
1214
- stubs/Symfony/Component/Form/ChoiceList/Loader/ChoiceLoaderInterface.stub
1315
- stubs/Symfony/Component/DependencyInjection/ContainerBuilder.stub
1416
- stubs/Symfony/Component/DependencyInjection/Extension/ExtensionInterface.stub
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Symfony\Bundle\FrameworkBundle\Test;
4+
5+
abstract class KernelTestCase
6+
{
7+
/**
8+
* @var TestContainer
9+
*/
10+
protected static $container;
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
namespace Symfony\Bundle\FrameworkBundle\Test;
4+
5+
class TestContainer
6+
{
7+
}

0 commit comments

Comments
 (0)