1 | <?php |
||
19 | final class MultiCodingStandardExtension extends CompilerExtension |
||
20 | { |
||
21 | use ExtensionHelperTrait; |
||
22 | |||
23 | /** |
||
24 | * @var string[] |
||
25 | */ |
||
26 | private $defaults = [ |
||
27 | 'configPath' => '%appDir%/../multi-cs.json' |
||
28 | ]; |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | 6 | public function loadConfiguration() |
|
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | 6 | public function beforeCompile() |
|
47 | |||
48 | 6 | private function loadServicesFromConfig() |
|
54 | |||
55 | 6 | private function loadCommandsToConsoleApplication() |
|
59 | |||
60 | 6 | private function loadEventSubscribersToEventDispatcher() |
|
64 | |||
65 | |||
66 | /** |
||
67 | * @param string[] $defaults |
||
68 | */ |
||
69 | 6 | private function setConfigToContainerBuilder(array $defaults) |
|
75 | } |
||
76 |
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.