Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
replaced get_called_class() with get_class($this) in non-static context
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AbstractContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Page/AbstractPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
));
}
Expand Down

0 comments on commit 9f983bb

Please sign in to comment.