1 | <?php |
||
19 | final class LoggableExtension extends AbstractBehaviorExtension |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private $default = [ |
||
26 | 'isRecursive' => TRUE, |
||
27 | 'loggerCallable' => LoggerCallable::class |
||
28 | ]; |
||
29 | |||
30 | |||
31 | 1 | public function loadConfiguration() |
|
48 | |||
49 | |||
50 | /** |
||
51 | * @throws AssertionException |
||
52 | */ |
||
53 | 1 | private function validateConfigTypes(array $config) |
|
58 | |||
59 | } |
||
60 |
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.