https://github.com/matomo-org/matomo/commit/2464b5c7e1dabc0a143c061f90c1902f6fb2d76c - Mouve

Site d'origine

Permalink
Browse files

Add support for auto-completion when using the container thanks to th…

…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 2464b5c7e1dabc0a143c061f90c1902f6fb2d76c
Showing with 10 additions and 0 deletions.
  1. +10 −0 .phpstorm.meta.php
@@ -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.

Raccourcis

Commandes

Fermer