This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
It seems like $voteService of type object<eXpansion\Bundle\...r\Services\VoteService> is incompatible with the declared type object<eXpansion\Bundle\...er\Plugins\VoteManager> of property $voteService.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
47
$this->playerStorage = $playerStorage;
48
}
49
50
/**
51
* @inheritdoc
52
*/
53
public function execute($login, InputInterface $input)
The method startVote() does not seem to exist on object<eXpansion\Bundle\...er\Plugins\VoteManager>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.