I'll check it out if it's available for mac and try it out!Contrary to the poll options here I recommend PHP Storm.
yes iam with u its the best
Php storm is free with an academic license.
Do you use a plugin for php storm so it better handles xenforos classes?
if (false)
{
class XFCP_Class extends XenForo_Class {}
)
/** @var XenForo_Model_User $this */
/** @var XenForo_Model_User $userModel */
$userModel = XenForo_Model::create('XenForo_Model_User');
There's always:
PHP:/** @var XenForo_Model_User $this */
In your method, from after that point, PhpStorm would assume $this to be an instance of XenForo_Model_User.
Similar to:
PHP:/** @var XenForo_Model_User $userModel */ $userModel = XenForo_Model::create('XenForo_Model_User');
PHP:/** @var XenForo_Model_User $this */
Is that "new" since one or two years? I remember php storm had problems redirecting me to some classes and from my memory $this might have been what didnt work.
Thanks for your explanation, now I know what to do for my own documentation so I can tell my editor how to understand $this.
Liam W, do you put this code on top of the files where proxy classes are used?
We use essential cookies to make this site work, and optional cookies to enhance your experience.