| 1 | <?php |
||
| 19 | class ImageResponse extends Response { |
||
| 20 | /** |
||
| 21 | * @var OCP\Image |
||
| 22 | */ |
||
| 23 | protected $image; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param \OCP\Image $image |
||
| 27 | */ |
||
| 28 | public function __construct($image = null) { |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param OCP\Image $image |
||
| 36 | */ |
||
| 37 | public function setImage(\OCP\Image $image) { |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Return the image data stream |
||
| 48 | * @return Image data |
||
| 49 | */ |
||
| 50 | public function render() { |
||
| 56 | |||
| 57 | } |
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..