| 1 | <?php |
||
| 24 | abstract class Processor |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * The compiler instance that runs this processor. |
||
| 28 | * |
||
| 29 | * @var Core |
||
| 30 | */ |
||
| 31 | protected $compiler; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Constructor, if you override it, call parent::__construct($compiler); or assign |
||
| 35 | * the dwoo instance yourself if you need it. |
||
| 36 | * |
||
| 37 | * @param Compiler $compiler the compiler class |
||
| 38 | */ |
||
| 39 | public function __construct(Compiler $compiler) |
||
| 40 | { |
||
| 41 | $this->compiler = $compiler; |
||
|
|
|||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Processes the input and returns it filtered. |
||
| 46 | * |
||
| 47 | * @param string $input the template to process |
||
| 48 | * |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | abstract public function process($input); |
||
| 52 | } |
||
| 53 |
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..