Skip to content

Commit

Permalink
reuse methods
Browse files Browse the repository at this point in the history
  • Loading branch information
markhuot committed Nov 4, 2023
1 parent 0f58c94 commit 5d8eb91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public function getProps(): ComponentData

public function getProp(string $key, mixed $default = null)
{
return $this->getProps()[$key] ?? $default;
return $this->getProps()->get($key) ?? $default;
}

public function getAttributeBag(): AttributeBag
Expand Down

0 comments on commit 5d8eb91

Please sign in to comment.