Bundle .phpstorm.meta.php files for new expectedArguments completion #1286
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PhpStorm 2019.1 introduces
expectedArguments
andexpectedReturnValues
meta definitions to allow for approciate completion of constants and string values.See official blog post here:
https://blog.jetbrains.com/phpstorm/2019/02/new-phpstorm-meta-php-features/
I went through Symfony framework/components and defined a lot of them here:
https://github.com/King2500/symfony-meta
People can fetch them via Composer now (as require-dev), but I think it would be better to have these bundled into this plugin.
Advantages:
I added symfony-meta repo as git-submodule so this can be updated easily in the future (
git submodule update
?).It will be built in plugin as "Library" folder, so PhpStorm can index/read meta defintions, as described here.
Examples

Here are some example screenshots where it comes in:
And also simple type mapping for standard Console helpers: