Hello,
I have a class that uses a trait with methods of protected visibility. In my class, I'm changing the visibility of these methods to public:
class Foo
{
use Bar { baz as public; qux as public; }
}
I'm able to access these methods just fine from outside of the class as expected, but the VS Code extension (v1.58.17223) shows a false positive error: Member has protected visibility and is not accessible from the current context. PHP(PHP1416).
Thank you!
Hello,
I have a class that uses a trait with methods of
protectedvisibility. In my class, I'm changing the visibility of these methods topublic:I'm able to access these methods just fine from outside of the class as expected, but the VS Code extension (v1.58.17223) shows a false positive error:
Member has protected visibility and is not accessible from the current context. PHP(PHP1416).Thank you!