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
No error is displayed when calling a method of a class that was generated when compiling the code.
To Reproduce (*)
Steps to reproduce the behavior:
Install a Magento project. In my case 2.4.2 version
Compile it: bin/magento setup:di:compile
Create some customised code like this for example:
public function match(\Magento\Framework\App\RequestInterface $request) {
$info = $request->getPathInfo();
}
Execute the phpstorm plugin. I tried 4.2.3 and 4.2.2
Right now no error is displayed for the call of the method getPathInfo() ** as when the code was compiled, a proxy class was generated, with the method. But in this case, this is error should be displayed:
* [ERROR][1429] Line 33: Called method '\Magento\Framework\HTTP\PhpEnvironment\Request.getPathInfo' is not marked as an API
Expected behavior (*)
This is error should be displayed:
* [ERROR][1429] Line 33: Called method '\Magento\Framework\HTTP\PhpEnvironment\Request.getPathInfo' is not marked as an API
Please complete the following information: (*)
OS: MacOs
PhpStorm/Intellij version: 2021.2.4
Plugin Version: 4.2.3 and 4.2.2
The text was updated successfully, but these errors were encountered:
bohdan-harniuk
changed the title
Error is not displayed if the generated class of the method called exists
[UCT] Error is not displayed if the generated class of the method called exists
Mar 19, 2022
Describe the bug (*)
No error is displayed when calling a method of a class that was generated when compiling the code.
To Reproduce (*)
Steps to reproduce the behavior:
* [ERROR][1429] Line 33: Called method '\Magento\Framework\HTTP\PhpEnvironment\Request.getPathInfo' is not marked as an API
Expected behavior (*)
This is error should be displayed:
* [ERROR][1429] Line 33: Called method '\Magento\Framework\HTTP\PhpEnvironment\Request.getPathInfo' is not marked as an API
Please complete the following information: (*)
The text was updated successfully, but these errors were encountered: