Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Oct 15, 2022
1 parent 243baf1 commit 9597608
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions engine/kernel/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ public function content(...$lot) {
return $this->__call('content', $lot);
}

public function exist() {
return $this->lot['exist'] ?? $this->_exist();
public function exist(...$lot) {
return $this->__call('exist', $lot) ?? $this->_exist();
}

public function getIterator(): \Traversable {
Expand All @@ -95,6 +95,10 @@ public function jsonSerialize() {
return $this->_exist() ? From::page(file_get_contents($this->path), true) : [];
}

public function name(...$lot) {
return $this->__call('name', $lot) ?? parent::name(...$lot);
}

#[\ReturnTypeWillChange]
public function offsetGet($key) {
if ($this->_exist()) {
Expand Down

0 comments on commit 9597608

Please sign in to comment.