Skip to content

Commit

Permalink
now with cap access to pureAccess
Browse files Browse the repository at this point in the history
  • Loading branch information
JessPinkman committed Mar 15, 2021
1 parent 4e2177d commit d31a4e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Component.php
Expand Up @@ -151,8 +151,13 @@ public function setPureTag(string $tag): self

public function __call($key, $args): self
{

$key = str_replace('_', '-', $key);

if (strtoupper($key) == $key) {
return $this->pureAccess(strtolower($key), ...$args);
}

if (!isset($this->attributes[$key])) {
$this->attributes[$key] = [];
}
Expand Down

0 comments on commit d31a4e7

Please sign in to comment.