{"action":"opened","issue":{"url":"https://api.github.com/repos/pbyrne84/DynamicReturnTypePlugin/issues/38","labels_url":"https://api.github.com/repos/pbyrne84/DynamicReturnTypePlugin/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/pbyrne84/DynamicReturnTypePlugin/issues/38/comments","events_url":"https://api.github.com/repos/pbyrne84/DynamicReturnTypePlugin/issues/38/events","html_url":"https://github.com/pbyrne84/DynamicReturnTypePlugin/issues/38","id":55379565,"number":38,"title":"Feature Request - Autocompletion on string literals","user":{"login":"srosato","id":650192,"avatar_url":"https://avatars.githubusercontent.com/u/650192?v=3","gravatar_id":"","url":"https://api.github.com/users/srosato","html_url":"https://github.com/srosato","followers_url":"https://api.github.com/users/srosato/followers","following_url":"https://api.github.com/users/srosato/following{/other_user}","gists_url":"https://api.github.com/users/srosato/gists{/gist_id}","starred_url":"https://api.github.com/users/srosato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srosato/subscriptions","organizations_url":"https://api.github.com/users/srosato/orgs","repos_url":"https://api.github.com/users/srosato/repos","events_url":"https://api.github.com/users/srosato/events{/privacy}","received_events_url":"https://api.github.com/users/srosato/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-24T18:13:36Z","updated_at":"2015-01-24T18:13:36Z","closed_at":null,"body":"I wonder, would it be possible to use your same structure in order to get fully qualified class names auto-completion on string literals?\r\n\r\nYour plugin has already saved my life in order to stop type hinting when creating mocks, for example:\r\n\r\n```php\r\n//from\r\n/* @var $mappingBuilderMock DataMapping|m\\MockInterface */\r\n$mappingBuilderMock = \\Mockery::mock('Ez\\Util\\Data\\Mapping\\DataMapping');\r\n$mappingBuilderMock->shouldReceive('create')->once()->andReturn($map);\r\n\r\n//to\r\n$mappingBuilderMock = \\Mockery::mock('Ez\\Util\\Data\\Mapping\\DataMapping');\r\n$mappingBuilderMock->shouldReceive('create')->once()->andReturn($map);\r\n```\r\n\r\nBut I wonder if we could use the same configuration to provide autocompletion on the string literal, for example\r\n\r\n```json\r\n{\r\n  \"methodCalls\": [\r\n    {\r\n      \"class\" : \"\\\\Mockery\",\r\n      \"method\": \"mock\",\r\n      \"position\": 0,\r\n      \"autocomplete\": true,\r\n      \"mask\": \"%s|\\\\Mockery\\\\MockInterface\"\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\nWhich would make it possible to autocomplete the fully qualified class name for mocks:\r\n\r\n```php\r\n//would autocompete to Ez\\Util\\Data\\Mapping\\DataMapping\r\n$mappingBuilderMock = \\Mockery::mock('EZ\\ PRESS CTRL ENTER HERE');\r\n```"}}