| 1 | <?php |
||
| 6 | class HtmlToTxtRender extends AbstractRender |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var \HTMLPurifier |
||
| 10 | */ |
||
| 11 | private $htmlPurifierService; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * HtmlToTxtRender constructor. |
||
| 15 | * |
||
| 16 | * @param \HTMLPurifier $htmlPurifierService |
||
| 17 | */ |
||
| 18 | public function __construct(\HTMLPurifier $htmlPurifierService) |
||
| 22 | |||
| 23 | public function render() |
||
| 48 | |||
| 49 | public function getSupport($api, $version) |
||
| 53 | } |
||
| 54 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: