Skip to content

Autocomplete and hover not working #678

@ging-dev

Description

@ging-dev

Reproduce with amphp/parallel

<?php
use Amp\Parallel\Worker\Task;
use function Amp\Parallel\Worker\submit;

/**
 * @implements Task<string, string, string>
 */
class TestTask implements Task
{
    
    /**
     * @inheritDoc
     */
    public function run(Amp\Sync\Channel $channel, Amp\Cancellation $cancellation): mixed {
    }
}

submit(new TestTask())->; // not suggest anything
$channel = submit(new TestTask())->getChannel(); // no hover in getChannel(), but $channel assign type is correctly

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions