1 | <?php |
||
8 | class Number extends Field { |
||
9 | |||
10 | public $value = ''; |
||
11 | public $width = '30%'; |
||
12 | |||
13 | public function setWidth($width) |
||
18 | 6 | ||
19 | public function getValue() |
||
23 | 15 | ||
24 | public function getButtonName() |
||
28 | 4 | ||
29 | public function renderWith() |
||
36 | 15 | ||
37 | public function setValueFromDefault() |
||
41 | 1 | ||
42 | public function setValueFromModel($model) |
||
46 | |||
47 | public function setValueFromRequest($request) |
||
51 | 1 | ||
52 | public function fillModelWithValue($model) |
||
56 | |||
57 | public function validate() |
||
61 | |||
62 | public function validateNumeric() |
||
66 | |||
67 | public function validateRequired() |
||
71 | 1 | ||
72 | public function validateBetween($min, $max) |
||
77 | |||
78 | public function validateMax($max) |
||
82 | |||
83 | public function validateMin($min) |
||
87 | |||
88 | public function validateInteger() |
||
92 | |||
93 | public function validateIn($values = []) |
||
97 | |||
98 | public function validateNotIn($values = []) |
||
102 | |||
103 | } |
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..