Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | protected function getResolver(string $defaultNamespace = self::DEFAULT_NAMESPACE): ConfigResolverInterface |
||
17 | { |
||
18 | $configResolver = new DefaultScopeConfigResolver( |
||
19 | $defaultNamespace |
||
20 | ); |
||
21 | $configResolver->setContainer($this->containerMock); |
||
|
|||
22 | |||
23 | return $configResolver; |
||
24 | } |
||
25 | |||
31 |
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.