Skip to content

Commit

Permalink
Add support for auto-completion when using the container thanks to th…
Browse files Browse the repository at this point in the history
…e 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)
  • Loading branch information
mnapoli committed Jun 24, 2015
1 parent 4bb0c02 commit 2464b5c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .phpstorm.meta.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace PHPSTORM_META
{
$STATIC_METHOD_TYPES = array(
\Piwik\Container\StaticContainer::get('') => [
"" == "@",
],
);
}

0 comments on commit 2464b5c

Please sign in to comment.