According to the book here, the HtmlHelper::link options are like this:
Cake\View\Helper\HtmlHelper::link(string $title, mixed $url = null, array $options = [])
But when I try to extend the helper like this:
public function link(string $title, mixed $url = null, array $options = []) {
and then pass an array to $url, I get the following error:
Argument 2 passed to App\View\Helper\MyHtmlHelper::link() must be an instance of App\View\Helper\mixed or null, array given in...
How can I extend the helper without this error?