| 1 | <?php |
||
| 7 | class JsonType 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 Json |
||
| 25 | * |
||
| 26 | * @param string $value |
||
| 27 | * @param null $annotation Unused |
||
| 28 | * @throws \Minime\Annotations\ParserException |
||
| 29 | * @return mixed |
||
| 30 | */ |
||
| 31 | public function parse($value, $annotation = null) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Wrapper fo json_decode function that keeps parser portable |
||
| 43 | * between json-ext and pecl-json-c extensions |
||
| 44 | * |
||
| 45 | * @param string $value json string |
||
| 46 | * @return mixed |
||
| 47 | */ |
||
| 48 | public static function jsonDecode($value) |
||
| 58 | |||
| 59 | } |
||
| 60 |
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..