1 | <?php |
||
17 | class ArffWriter implements WriterInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $filename; |
||
23 | |||
24 | /** |
||
25 | * @var Document |
||
26 | */ |
||
27 | protected $document; |
||
28 | |||
29 | /** |
||
30 | * @var ArffWriter |
||
31 | */ |
||
32 | protected $writer; |
||
33 | |||
34 | /** |
||
35 | * @param string $filename |
||
36 | * @param string $name |
||
37 | * @param ColumnInterface[] $columns |
||
38 | * |
||
39 | * @codeCoverageIgnore |
||
40 | */ |
||
41 | public function __construct($filename, $name, array $columns) |
||
50 | |||
51 | /** |
||
52 | * Write the given item. |
||
53 | * |
||
54 | * @param mixed $item |
||
55 | * |
||
56 | * @return void |
||
57 | */ |
||
58 | 1 | public function writeItem($item) |
|
62 | |||
63 | /** |
||
64 | * Prepare the writer. |
||
65 | * |
||
66 | * @return void |
||
67 | */ |
||
68 | 1 | public function prepare() |
|
73 | |||
74 | /** |
||
75 | * Finish the writer. |
||
76 | * |
||
77 | * @return void |
||
78 | */ |
||
79 | 1 | public function finish() |
|
82 | } |
||
83 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..