1 | <?php |
||
11 | class MRounder |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * Default rounding behaviour |
||
16 | * @var string |
||
17 | */ |
||
18 | const FLOOR="floor"; |
||
19 | |||
20 | /** |
||
21 | * Turn on CEILING functionality |
||
22 | * @var string |
||
23 | */ |
||
24 | const CEIL="ceil"; |
||
25 | |||
26 | /** |
||
27 | * Turn on FLOOR functionality |
||
28 | * @var string |
||
29 | */ |
||
30 | const ROUND="round"; |
||
31 | |||
32 | /** |
||
33 | * @var numeric |
||
34 | */ |
||
35 | public $multiple; |
||
36 | |||
37 | /** |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | public $mode; |
||
42 | |||
43 | |||
44 | /** |
||
45 | * @param numeric $multiple |
||
46 | */ |
||
47 | 120 | public function __construct( $multiple = 1, $mode = null ) |
|
60 | |||
61 | |||
62 | /** |
||
63 | * Accepts a number or array with numbers. |
||
64 | * @param numeric[] $number |
||
65 | */ |
||
66 | 108 | public function __invoke( $number ) |
|
96 | } |
||
97 |
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..