diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-06-24 18:32:52 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-06-24 18:39:37 +0300 |
commit | 2464b5c7e1dabc0a143c061f90c1902f6fb2d76c (patch) | |
tree | 5974841d7168cfadb445d9c8fda22869a053cd34 /.phpstorm.meta.php | |
parent | 4bb0c02ca23150eb733fd6f472e21bbf85262a39 (diff) |
Add support for auto-completion when using the container thanks to the latest PhpStorm beta
See https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Advanced+Metadata
For example:
```
$logger = StaticContainer::get('Psr\Log\LoggerInterface');
$logger->
```
The autocompletion would work based on the argument passed to `StaticContainer::get()`.
(cherry picked from commit 92960ac)
Diffstat (limited to '.phpstorm.meta.php')
-rw-r--r-- | .phpstorm.meta.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.phpstorm.meta.php b/.phpstorm.meta.php new file mode 100644 index 0000000000..19b96d5d6a --- /dev/null +++ b/.phpstorm.meta.php @@ -0,0 +1,10 @@ +<?php + +namespace PHPSTORM_META +{ + $STATIC_METHOD_TYPES = array( + \Piwik\Container\StaticContainer::get('') => [ + "" == "@", + ], + ); +} |