| 1 | <?php |
||
| 5 | class StringType extends AbstractType |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var TypeInterface |
||
| 9 | */ |
||
| 10 | private static $instance; |
||
| 11 | |||
| 12 | public static function getType() |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Parse a given value as string |
||
| 23 | * |
||
| 24 | * @param string $value |
||
| 25 | * @param null $annotation Unused |
||
| 26 | * @return mixed |
||
| 27 | */ |
||
| 28 | public function parse($value, $annotation = null) |
||
| 32 | |||
| 33 | } |
||
| 34 |
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..