Skip to content

Autocomplete partially working :o #286

@Taluu

Description

@Taluu

Hey,

I just updated phpactor through a :PlugUpdate. For some classes, it works right off the bat (I have completion for all the private / public members, and so on), but on another case, I don't have anything suggested. The case is the following ;

<?php declare(strict_types=1);
namespace Acme\Foo;

use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;

use Symfony\Bridge\Doctrine\RegistryInterface;

class UniqUnitReferenceValidator extends ConstraintValidator
{
    /** @var RegistryInterface */
    private $registry;

    public function __construct(RegistryInterface $registry)
    {
        $this->registry = $registry;
    }

    public function validate($value, Constraint $constraint)
    {
    }
}

Trying to use the $this->registry, which should point to Symfony\Bridge\Doctrine\RegistryInterface, or even at least offer the properties / validate method or other methods in ContraintValidator), but instead I have only the basic autocompletion, based on the current tags.

Here are the logs ;

[2017-12-08T15:37:44.951645+01:00] phpactor.WARNING: Unable to locate class "Acme\Foo\UniqUnitReferenceValidator" for method "registry" [] []
[2017-12-08T15:37:45.058849+01:00] phpactor.WARNING: Unable to locate class "Acme\Foo\UniqUnitReferenceValidator" for method "registry" [] []

This is a new file unknown to git, but even with some files known to git, I have it seems the same error...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions