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
When generating a before plugin for method that accepts scalar parameters, sometimes the generated plugin class contains imports for scalars like int, treating them as classes rather than built-in types.
To Reproduce (*)
Steps to reproduce the behavior:
Have an original class to create a plugin for containing a method with the following signature:
Hi @novikor. Thank you for your report.
To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
Describe the bug
When generating a before plugin for method that accepts scalar parameters, sometimes the generated plugin class contains imports for scalars like
int
, treating them as classes rather than built-in types.To Reproduce (*)
Steps to reproduce the behavior:
before
plugin type.3. Navigate the newly created class
4. See the imports broken
By a following code line:
Expected behavior (*)
use int
is missing, PHP imports are validScreenshots
Attached above
Please complete the following information: (*)
PhpStorm 2024.3.2
The text was updated successfully, but these errors were encountered: