getReferer method missing in IRequest
misaon opened this issue · 3 comments
misaon commented
- bug report? yes
- feature request? no
- version: 2.4.7
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 commented
It is possible that there are more missing methods. But bad is that adding them to the interface is a big BC break…
misaon commented
@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 commented
It seems like solution