Skip to content

Commit 2464b5c

Browse files
committed
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)
1 parent 4bb0c02 commit 2464b5c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.phpstorm.meta.php

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace PHPSTORM_META
4+
{
5+
$STATIC_METHOD_TYPES = array(
6+
\Piwik\Container\StaticContainer::get('') => [
7+
"" == "@",
8+
],
9+
);
10+
}

0 commit comments

Comments
 (0)