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

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -