$this of type DH\Adf\Builder\TaskItemBuilder is incompatible with the type DH\Adf\Node\BlockNode|null expected by parameter $parent of DH\Adf\Node\Child\TaskItem::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
15
$block = new TaskItem($todo, /** @scrutinizer ignore-type */ $this);