XF 2.0 Undefined class constant error

Tom

Active member
Getting this error from my `Listener.php` file:
An exception occurred: [Error] Undefined class constant 'UINT' in src/addons/VersoBit/ConvoTools/Listener.php on line 11

My code within `Listener.php` is:
PHP:
<?php

namespace VersoBit\ConvoTools;

use XF\Mvc\Entity\Entity;

class Listener
{
    public static function conversationRecipientEntityStructure(\XF\Mvc\Entity\Manager $em, \XF\Mvc\Entity\Structure &$structure)
    {
        $structure->columns['vb_convotools_last_opened_date'] = ['type' => self::UINT, 'default' => time()];
    }
}

Any ideas what the issue is here? Looks like I'm missing something simple but can't find it.
 
Top Bottom