-
Matthieu Napoli a rédigé
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)
Matthieu Napoli a rédigé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)
.phpstorm.meta.php 165 o
<?php
namespace PHPSTORM_META
{
$STATIC_METHOD_TYPES = array(
\Piwik\Container\StaticContainer::get('') => [
"" == "@",
],
);
}