1 | <?php |
||
36 | class TerminalHandler extends StreamHandler |
||
37 | { |
||
38 | /** |
||
39 | * Use ANSI color or not |
||
40 | * |
||
41 | * @var bool |
||
42 | * @access protected |
||
43 | */ |
||
44 | protected $color; |
||
45 | |||
46 | /** |
||
47 | * Constructor |
||
48 | * |
||
49 | * @param string $stream the stream |
||
50 | * @param bool $color use ANSI color formatter or not |
||
51 | * @param string $logLevel |
||
|
|||
52 | * @param FormatterInterface $formatter |
||
53 | * @param bool $stopPropagation |
||
54 | * @access public |
||
55 | */ |
||
56 | public function __construct( |
||
81 | |||
82 | /** |
||
83 | * Override default |
||
84 | * |
||
85 | * {@inheritDoc} |
||
86 | */ |
||
87 | protected function setFormatter(FormatterInterface $formatter = null) |
||
96 | |||
97 | /** |
||
98 | * {@inheritDoc} |
||
99 | */ |
||
100 | protected function isHandlingOther(LogEntryInterface $logEntry)/*# : bool */ |
||
104 | } |
||
105 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.