| 1 | <?php |
||
| 7 | class FloatType extends AbstractType |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var TypeInterface |
||
| 11 | */ |
||
| 12 | private static $instance; |
||
| 13 | |||
| 14 | public static function getType() |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Filter a value to be a Float |
||
| 25 | * |
||
| 26 | * @param string $value |
||
| 27 | * @param null $annotation Unused |
||
| 28 | * @throws \Minime\Annotations\ParserException |
||
| 29 | * @return float |
||
| 30 | */ |
||
| 31 | public function parse($value, $annotation = null) |
||
| 39 | |||
| 40 | } |
||
| 41 |
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..