Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PHP] Automplete with extended interface #710

Open
Fedez1879 opened this issue Dec 9, 2020 · 0 comments
Open

[PHP] Automplete with extended interface #710

Fedez1879 opened this issue Dec 9, 2020 · 0 comments

Comments

@Fedez1879
Copy link

Hello, I've encountered an issue (maybe?) with autocompletion and extended interfaces.

let's say I've two interfaces:

<?php

interface A { 
	function A();
}

interface B extends A { 
	function B();
}

class C implements B {
	function A(){ return "A"; }
	function B(){ return "B"; }
}

$getC = function(){
	return new C;
};

/**
 * @var B
 */
$C = $getC();

when typyng $C->..... only B function appears in the list of avaiable functions

Expected behaviour: A and B functions should appear in the list of avaiable functions

Am I wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant