123inkt/accessorpair-constraint

Public getter, private setter throws reflection exception.

frankdekker opened this issue · 1 comments

class Example {
    private $value;

    public function setValue(string $value) {
          $this->value = $value;
    }

    private function getValue(): string {
         return $value;
    }
}

Throws error ReflectionException : Trying to invoke private method in AccessorPairConstraint:185

Discussed the issue in private, issue was solved in an earlier version and used package was not up to date