DragonByte Tech
Well-known member
- Affected version
- 2.2.1
This block of code:
Produces hard errors when viewed in phpStorm:


From what I can tell, phpStorm is accurate in its analysis. I believe both
PHP:
if ($alert->alerted_user_id != \XF::visitor()->user_id)
{
throw $this->notFound();
}
if (!$alert->canView())
{
throw $this->noPermission();
}
Produces hard errors when viewed in phpStorm:


From what I can tell, phpStorm is accurate in its analysis. I believe both
notFound
and noPermission
should be surrounded by $this->exception()
.