Skip to content

Commit 0039ea5

Browse files
Merge pull request #1 from barbieswimcrew/patch-1
Update ComponentAttributes.php
2 parents ffad8cb + a2aeb28 commit 0039ea5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/TwigComponent/src/ComponentAttributes.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@ public function getIterator(): \Traversable
193193
return new \ArrayIterator($this->attributes);
194194
}
195195

196+
public function has(string $attribute): bool
197+
{
198+
return array_key_exists($attribute, $this->attributes);
199+
}
200+
196201
public function count(): int
197202
{
198203
return \count($this->attributes);

0 commit comments

Comments
 (0)