LPH
Well-known member
I'm just trying to dissect different parts of XenForo and figure out what is happening. While trying to see how classes were called and instantiated ... I ran across a $null in canStartConversations.
phpStorm is showing that $null is undefined. In looking at the User.php in XenForo/Model ... there is
What is the $null doing at this point?
PHP:
public function canStartConversations()
{
return XenForo_Model::create('XenForo_Model_User')->canStartConversations($null, $this->_user);
}
phpStorm is showing that $null is undefined. In looking at the User.php in XenForo/Model ... there is
PHP:
public function canStartConversations(&$errorPhraseKey = '', array $viewingUser = null)
What is the $null doing at this point?