Prompt in phpstorm: potential polymorphic calls. There are no members in the hierarchy of request
1. Prompt in phpstorm: potential polymorphic calls. There are no members in the hierarchy of requests. as shown in Figure 1
2. Print $this->request and confirm that it is yii\web\request object. as shown in Figure 2
3. This is because $this->request is not explicitly marked by the type, and phpstorm cannot confirm its class type (i.e. $this->request is \yii\web\request instances). The final decision is to be implemented in the base class of the controller as follows, and now the IDE can recognize $this->request as type yii\web\request in all subclasses. as shown in Figure 3
/**
* @property Request $request
*/
class ApiBase extends Controller
{
}


