ふらふらしていて、これを見つけました。
への参照による呼び出しは、未定義のプロパティ通知 (プロパティ) をスロー$this->newAxis()
しないのに、なぜスローしますか?xAxis
var_dump()
public function newXAxis()
{
// var_dump(isset($this->xAxis)); // false
// var_dump($this->xAxis); // Throws the notice
return $this->newAxis($this->xAxis); // Should throw the notice?!
}
protected function newAxis(&$current)
{
// ...
}
参照渡しと関係があるので、プロパティに直接アクセスできませんか?