| 1 | <?php | ||
| 14 | final class DefaultAutowireTypesCompilerPass implements CompilerPassInterface | ||
| 15 | { | ||
| 16 | /** | ||
| 17 |      * {@inheritdoc} | ||
| 18 | */ | ||
| 19 | 2 | public function process(ContainerBuilder $containerBuilder) | |
| 35 | |||
| 36 | /** | ||
| 37 | * @return string[] | ||
| 38 | */ | ||
| 39 | 2 | private function getAutowireTypes(ContainerBuilder $containerBuilder) | |
| 45 | } | ||
| 46 | 
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.