php - PHPDoc to describe dynamic reference to static method -


    $class = 'myclass';     $class::method(); 

is possible add auto-complete of ::method(); phpdoc?

yes. way only:

<?php $class = 'myclass'; /** @var myclass|string $class */ $class::method(); 

enter image description here


Comments

Popular posts from this blog

ios - Change Storyboard View using Seague -

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -