Skip to content

Commit

Permalink
Could Not Fire Hook on exist and name Property
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Oct 22, 2022
1 parent 9597608 commit cea0ebf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/kernel/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function content(...$lot) {
}

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

public function getIterator(): \Traversable {
Expand All @@ -96,7 +96,7 @@ public function jsonSerialize() {
}

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

#[\ReturnTypeWillChange]
Expand Down

0 comments on commit cea0ebf

Please sign in to comment.