{"action":"created","issue":{"url":"https://api.github.com/repos/Haehnchen/idea-php-shopware-plugin/issues/21","labels_url":"https://api.github.com/repos/Haehnchen/idea-php-shopware-plugin/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/Haehnchen/idea-php-shopware-plugin/issues/21/comments","events_url":"https://api.github.com/repos/Haehnchen/idea-php-shopware-plugin/issues/21/events","html_url":"https://github.com/Haehnchen/idea-php-shopware-plugin/issues/21","id":115561135,"number":21,"title":"Create Method on subscribeEvent","user":{"login":"shyim","id":6224096,"avatar_url":"https://avatars.githubusercontent.com/u/6224096?v=3","gravatar_id":"","url":"https://api.github.com/users/shyim","html_url":"https://github.com/shyim","followers_url":"https://api.github.com/users/shyim/followers","following_url":"https://api.github.com/users/shyim/following{/other_user}","gists_url":"https://api.github.com/users/shyim/gists{/gist_id}","starred_url":"https://api.github.com/users/shyim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shyim/subscriptions","organizations_url":"https://api.github.com/users/shyim/orgs","repos_url":"https://api.github.com/users/shyim/repos","events_url":"https://api.github.com/users/shyim/events{/privacy}","received_events_url":"https://api.github.com/users/shyim/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Haehnchen/idea-php-shopware-plugin/labels/api","name":"api","color":"eb6420"},{"url":"https://api.github.com/repos/Haehnchen/idea-php-shopware-plugin/labels/fixed","name":"fixed","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-06T18:29:28Z","updated_at":"2016-02-01T20:06:53Z","closed_at":"2016-02-01T20:06:53Z","body":"Phpstorm has on ALT + Enter a Shortcut to create methods. When i use it on a subscribeEvent Method, i will get a Exception:\r\n\r\nStacktrace:\r\ncom.jetbrains.php.codeInsight.PhpCodeInsightUtil.collectNamespaces(Lcom/jetbrains/php/lang/psi/PhpFile;)Ljava/util/List;\r\njava.lang.NoSuchMethodError: com.jetbrains.php.codeInsight.PhpCodeInsightUtil.collectNamespaces(Lcom/jetbrains/php/lang/psi/PhpFile;)Ljava/util/List;\r\n\tat de.espend.idea.shopware.inspection.quickfix.CreateMethodQuickFix.applyFix(CreateMethodQuickFix.java:82)\r\n\tat de.espend.idea.shopware.inspection.quickfix.CreateMethodQuickFix.applyFix(CreateMethodQuickFix.java:42)\r\n\tat com.intellij.codeInspection.ex.QuickFixWrapper.invoke(QuickFixWrapper.java:86)\r\n\tat com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler$2.run(ShowIntentionActionsHandler.java:188)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1002)\r\n\tat com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler$3.run(ShowIntentionActionsHandler.java:202)\r\n\tat com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:124)\r\n\tat com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)\r\n\tat com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:85)\r\n\tat com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler.chooseActionAndInvoke(ShowIntentionActionsHandler.java:207)\r\n\tat com.intellij.codeInsight.intention.impl.IntentionListStep$2$1.run(IntentionListStep.java:260)\r\n\tat com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:337)\r\n\tat com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:321)\r\n\tat java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)\r\n\tat java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)\r\n\tat java.awt.EventQueue.access$500(EventQueue.java:97)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:702)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:696)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)\r\n\tat java.awt.EventQueue.dispatchEvent(EventQueue.java:719)\r\n\tat com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:861)\r\n\tat com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:649)\r\n\tat com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:380)\r\n\tat java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)\r\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)\r\n\tat java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)\r\n\tat java.awt.EventDispatchThread.run(EventDispatchThread.java:82)\r\n\r\n\r\nTried code:\r\n$this->subscribeEvent(\r\n            'Enlight_Controller_Action_PostDispatchSecure_Frontend',\r\n            'onPostDispatch'\r\n        );\r\n\r\n![bildschirmfoto 2015-11-06 um 19 28 49](https://cloud.githubusercontent.com/assets/6224096/11005174/aaca7cd6-84bc-11e5-8efe-a045beb3780a.png)\r\n"},"comment":{"url":"https://api.github.com/repos/Haehnchen/idea-php-shopware-plugin/issues/comments/178165601","html_url":"https://github.com/Haehnchen/idea-php-shopware-plugin/issues/21#issuecomment-178165601","issue_url":"https://api.github.com/repos/Haehnchen/idea-php-shopware-plugin/issues/21","id":178165601,"user":{"login":"shyim","id":6224096,"avatar_url":"https://avatars.githubusercontent.com/u/6224096?v=3","gravatar_id":"","url":"https://api.github.com/users/shyim","html_url":"https://github.com/shyim","followers_url":"https://api.github.com/users/shyim/followers","following_url":"https://api.github.com/users/shyim/following{/other_user}","gists_url":"https://api.github.com/users/shyim/gists{/gist_id}","starred_url":"https://api.github.com/users/shyim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shyim/subscriptions","organizations_url":"https://api.github.com/users/shyim/orgs","repos_url":"https://api.github.com/users/shyim/repos","events_url":"https://api.github.com/users/shyim/events{/privacy}","received_events_url":"https://api.github.com/users/shyim/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T20:06:53Z","updated_at":"2016-02-01T20:06:53Z","body":"Thank you @Haehnchen  :+1: "}}