> but $this->pitable is changed at line 253:
Not anymore. setKey(), in this pull request, using only a local copy of  $this->pitable ... not the class var it self. So it will be write-untouched.