1 | <?php |
||
15 | class BoxcarHandler extends AbstractProcessingHandler |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * @var Boxcar |
||
20 | */ |
||
21 | private $boxcar; |
||
22 | |||
23 | /** |
||
24 | * Send push notifications to Boxcar for iOS |
||
25 | * |
||
26 | * @param Boxcar $boxcar A initialized Boxcar object |
||
27 | * @param bool|int $level The minimum logging level at which this handler will be triggered |
||
28 | * @param bool $bubble Whether the messages that are handled can bubble up the stack or not |
||
29 | */ |
||
30 | public function __construct(Boxcar $boxcar, $level = Logger::DEBUG, $bubble = true) |
||
36 | |||
37 | /** |
||
38 | * If title is provided we use that for the notification title, otherwise the record level name |
||
39 | * |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | protected function write(array $record) |
||
48 | } |
||
49 |
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.