You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, when i write $this->getHttpRequest()->getReferer() i encountered a problem when the IDE PhpStorm did not know about the getReferer() method. The reason is that the method is missing in IRequest. I want to ask if it is deliberate or a bug. It would be good either to add or add an appropriate annotation to the IDE to understand that the getReferer method is accessible.
...
@dg How about adding @method Url|null getReferer() Returns referrer. annotation to head of the interface like this? I tried and works great. Additionally, it does not create an BC break.
Activity
dg commentedon Mar 22, 2018
It is possible that there are more missing methods. But bad is that adding them to the interface is a big BC break…
misaon commentedon Mar 23, 2018
@dg How about adding
@method Url|null getReferer() Returns referrer.annotation to head of the interface like this? I tried and works great. Additionally, it does not create an BC break.dg commentedon Mar 26, 2018
It seems like solution
IRequest: added missing getReferer method for suggestion in IDE's (#138)