DreamNetworks
Active member
Hi All,
I'm trying to add a code event listener to an option.
But now I'm getting the following error:
This is my Listener.php
I have tried to find a solution and googling, but I don't get any smarter from it. Someone willing to help me in this one?
I'm trying to add a code event listener to an option.
But now I'm getting the following error:
PHP:
ErrorException: [E_WARNING]...Listener::resourceItemEntityStructure(): Argument #1 ($xfrmop) must be of type XF\Mvc\Entity\Structure, int given, called in /src/XF/Entity/Option.php on line 208 in [B]Listener.php[/B] at line [B]9[/B]
This is my Listener.php
PHP:
use \XF\Mvc\Entity\Structure;
class Listener
{
public static function resourceItemEntityStructure(\XF\Mvc\Entity\Structure &$xfrmop)
{
unset($xfrmop->columns['tag_line']['required']);
}
}
I have tried to find a solution and googling, but I don't get any smarter from it. Someone willing to help me in this one?
Last edited: