Skip to content

ValueHolder proxy for class with accessing to private property within final method #472

@kim-skyeng

Description

@kim-skyeng

I have class with accessing to private property within final method like this:

class ClassWithFinalMethodAndPrivateProperty
{
    private $prop = 'privet';

    final public function finalMethod()
    {
        return $this->prop;
    }
}

I get Cannot access private property $prop error if I call finalMethod on valueHolder proxy of this class.

Is there such limitation for Value HolderProxy using or did I something wrong? Can't find any mentions about it in documentation or issues.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions