1 | <?php |
||
7 | class MessageConfigData |
||
8 | { |
||
9 | const TOOL = 'message'; |
||
10 | const DEFAULT_RIGHT_MESSAGE = 'HEY, GOOD JOB!!'; |
||
11 | const DEFAULT_ERROR_MESSAGE = 'FIX YOUR FUCKING CODE!!'; |
||
12 | const KEY_RIGHT_MESSAGE = 'right-message'; |
||
13 | const KEY_ERROR_MESSAGE = 'error-message'; |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | private $configData; |
||
18 | /** |
||
19 | * @var IOInterface |
||
20 | */ |
||
21 | private $io; |
||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $hook; |
||
26 | |||
27 | /** |
||
28 | * MessageConfigData constructor. |
||
29 | * |
||
30 | * @param IOInterface $io |
||
31 | * @param $hook |
||
32 | */ |
||
33 | 9 | public function __construct(IOInterface $io, $hook) |
|
38 | |||
39 | /** |
||
40 | * @param array $data |
||
41 | * |
||
42 | * @return array |
||
43 | */ |
||
44 | 9 | public function config(array $data) |
|
51 | |||
52 | 9 | private function configMessages() |
|
69 | |||
70 | /** |
||
71 | * @param string $message |
||
72 | * @param string $default |
||
73 | * |
||
74 | * @return string |
||
75 | */ |
||
76 | 8 | private function setMessage($message, $default) |
|
81 | } |
||
82 |
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..