PhpStorm autocomplete without DynamicReturnTypePlugin

Put the file ".phpstorm.meta.php" into root of your repository. Content of file .phpstorm.meta.php:

<?php
namespace PHPSTORM_META {
    override( \Container::get(0), map([]));
}

Where \Container::get - method for get some object, example:

\Container::get('My\Super')

or

\Container::get(My\Super::class)

and now you can use autocomplete of all class methods.


17.01.2018 09:27