Closed finn-matti closed 4 years ago
Is sendRequest
an override of a base method?
No it doesn't seem like it. This class extends Controller which doesn't implement a sendRequest
method: https://www.yiiframework.com/doc/api/2.0/yii-base-controller
Any ideas? Any way I can help with this?
@finn-matti Have you tried Peek definition Alt+F12
on $this->sendRequest('email/templates')
? This should show what definition intelephense is using.
Hm. Maybe we changed something, but the error doesn't show up anymore.
I'm getting this same problem with intelliphense 1.3.6 and the php built-in \DatePeriod function
Expected 5 arguments. Found 3.
But the constructors for DatePeriod don't have anything with 5 required arguments: https://www.php.net/manual/en/class.dateperiod.php
I'm using PHP 7.3.11
@719media , I've opened #904 for this. Closing this ticket because I was unable to reproduce the original issue and it's no longer a problem for the author.
Describe the bug In one of our classes (which I don't mean to imply its an isolated case, just that I noticed it in one class) intelephense complains about a method being called with 1 argument, even though two were expected. BUT: The method in question has 4 args and three of those have a default.
To Reproduce
Expected behavior It shouldn't complain about this.
Screenshots An here's a screenshot showing the wrong(?) error:
Platform and version macOs 10.14.6 and Intelephense version 1.2.3