I'm using @template and @extends to support generic types. The class names used in these annotations are not recognized as required imports. Is this not supported by this plugin? Will this be supported in an upcoming version?
<?php
use Illuminate\Database\Eloquent\Model; // PHPStorm flags this import as unused
/**
* @template T of Model
*/
interface RepositoryInterface
{
/**
* @param string $id
* @return T|null
*/
public function find(string $id);
}
<?php
use App\Models\MyModel; // PHPStorm flags this import as unused
/**
* @extends RepositoryInterface<MyModel>
*/
interface MyModelRepository extends RepositoryInterface
{
}
I'm using
@template
and@extends
to support generic types. The class names used in these annotations are not recognized as required imports. Is this not supported by this plugin? Will this be supported in an upcoming version?