1 | <?php |
||
28 | class FluentHandler extends AbstractProcessingHandler |
||
29 | { |
||
30 | /** @var LoggerInterface */ |
||
31 | protected $logger; |
||
32 | |||
33 | /** @var string */ |
||
34 | protected $tagFormat = '{{channel}}.{{level_name}}'; |
||
35 | |||
36 | /** |
||
37 | * FluentHandler constructor. |
||
38 | * |
||
39 | * @param LoggerInterface $logger |
||
40 | * @param bool|int $level |
||
41 | * @param bool|true $bubble |
||
42 | */ |
||
43 | 5 | public function __construct(LoggerInterface $logger, $tagFormat = null, $level = Logger::DEBUG, $bubble = true) |
|
51 | |||
52 | /** |
||
53 | * @param array $record |
||
54 | */ |
||
55 | 1 | protected function write(array $record) |
|
64 | |||
65 | /** |
||
66 | * @param array $record |
||
67 | */ |
||
68 | 1 | protected function populateTag($record) |
|
72 | |||
73 | /** |
||
74 | * @param array $record |
||
75 | * @param array $format |
||
76 | */ |
||
77 | 1 | protected function processFormat($record, $format) |
|
92 | |||
93 | /** |
||
94 | * @return LoggerInterface |
||
95 | */ |
||
96 | 1 | public function getLogger() |
|
100 | } |
||
101 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.