| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 17 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 23 | public function testAutoConfigurationCannotBeDone(): void  | 
            ||
| 24 |     { | 
            ||
| 25 | $container = $this->createMock(ContainerBuilder::class);  | 
            ||
| 26 |         $container->expects(self::never())->method('registerForAutoconfiguration'); | 
            ||
| 27 |         $container->expects(self::never())->method('findTaggedServiceIds'); | 
            ||
| 28 | |||
| 29 | $extension = new SymfonyExtension();  | 
            ||
| 30 | $extension->load($container, [  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 31 | 'bootstrap' => null,  | 
            ||
| 32 | 'kernel' => [  | 
            ||
| 33 | 'class' => 'Kernel',  | 
            ||
| 34 | 'path' => 'src/',  | 
            ||
| 35 | ],  | 
            ||
| 36 | 'autoconfigure' => false,  | 
            ||
| 37 | 'step_autowiring' => false,  | 
            ||
| 38 | ]);  | 
            ||
| 39 | }  | 
            ||
| 40 | |||
| 49 | 
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: