Reputation: 4062
$class = 'MyClass';
$class::method();
Is it possible to add auto-complete of ::method();
with PHPDoc?
Upvotes: 0
Views: 523
Reputation: 165148
Yes. But this way only:
<?php
$class = 'MyClass';
/** @var MyClass|string $class */
$class::method();
Upvotes: 2