diff --git a/src/AbstractContainer.php b/src/AbstractContainer.php index cfde1f8..56a250e 100644 --- a/src/AbstractContainer.php +++ b/src/AbstractContainer.php @@ -353,7 +353,7 @@ public function __call($method, $arguments) if (!$result) { throw new Exception\BadMethodCallException(sprintf( 'Bad method call: Unknown method %s::%s', - get_called_class(), + get_class($this), $method ), 0, $error); } diff --git a/src/Page/AbstractPage.php b/src/Page/AbstractPage.php index f82bf4d..0fb97fa 100644 --- a/src/Page/AbstractPage.php +++ b/src/Page/AbstractPage.php @@ -1129,7 +1129,7 @@ public function toArray() 'privilege' => $this->getPrivilege(), 'active' => $this->isActive(), 'visible' => $this->isVisible(), - 'type' => get_called_class(), + 'type' => get_class($this), 'pages' => parent::toArray(), )); }