updated streamline-setup v2

This commit is contained in:
2025-01-15 08:53:49 -08:00
committed by alec.turner
parent a2ce9248f0
commit 4b569f81b0
20228 changed files with 2932048 additions and 63204 deletions
@@ -4,6 +4,4 @@ declare(strict_types=1);
namespace Termwind\Components;
final class Anchor extends Element
{
}
final class Anchor extends Element {}
@@ -70,7 +70,7 @@ abstract class Element
public function toString(): string
{
if (is_array($this->content)) {
$inheritance = new InheritStyles();
$inheritance = new InheritStyles;
$this->content = implode('', $inheritance($this->content, $this->styles));
}
@@ -83,6 +83,7 @@ abstract class Element
public function __call(string $name, array $arguments): mixed
{
if (method_exists($this->styles, $name)) {
// @phpstan-ignore-next-line
$result = $this->styles->{$name}(...$arguments);
if (str_starts_with($name, 'get') || str_starts_with($name, 'has')) {