Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1102: Fix bug create an observer #1166

Conversation

anzin
Copy link
Contributor

@anzin anzin commented Sep 7, 2022

Description (*)

This pull request (PR) provides, fix bug create an observer for an event doesn't work through the context menu

Screenshot 2022-09-07 at 18 09 51

Fixed Issues (if relevant)

  1. Fixes Create an observer for an event doesn't work through the context menu #1102

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with integration/functional tests (if applicable)
  • All automated tests passed successfully (all builds are green)

return true;
}

return PhpLangUtil.isFqn(targetClass.getFQN()) && !targetClass.getFQN().endsWith("\\");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we don’t use here com.magento.idea.magento2plugin.actions.generation.generator.util.PhpClassGeneratorUtil#isValidFqn?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, @VitaliyBoyko, thank you for review,
I didn't use com.magento.idea.magento2plugin.actions.generation.generator.util.PhpClassGeneratorUtil#isValidFqn , because this method returns true when checking Fqn that ends with '\'

Thank you.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@VitaliyBoyko VitaliyBoyko merged commit 0eb537e into magento:4.4.0-develop Sep 8, 2022
SilinMykola pushed a commit to SilinMykola/magento2-phpstorm-plugin that referenced this pull request Sep 8, 2022
…er-not-work-through-the-context-menu

1102: Fix bug create an observer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create an observer for an event doesn't work through the context menu
3 participants