-
-
Notifications
You must be signed in to change notification settings - Fork 946
Closed
Labels
Milestone
Description
Bug report
I get this error:
------ --------------------------------------------------------------------
Line include/class_msg_dialog.inc
------ --------------------------------------------------------------------
197 Function get_smarty not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
------ --------------------------------------------------------------------
The function get_smarty is in another file and looks like this:
function &get_smarty ()
{
global $smarty;
return $smarty;
}
The discovery of other functions and symbols works fine, and if I remove the & the error goes away so I think the symbol discovery has a bug related to function returning by reference.
Code snippet that reproduces the problem
Expected output
No error
Reactions are currently unavailable