From a32c016e5bb012771fb0ef5d7fcfd207b96162d1 Mon Sep 17 00:00:00 2001 From: Bart Jaskulski <bjaskulski@protonmail.com> Date: Wed, 6 Oct 2021 10:52:28 +0200 Subject: [PATCH] fix: remove classes from basic attributes iteration --- src/Field/Traits/HtmlAttributes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Field/Traits/HtmlAttributes.php b/src/Field/Traits/HtmlAttributes.php index e0fc3ba..980d54c 100644 --- a/src/Field/Traits/HtmlAttributes.php +++ b/src/Field/Traits/HtmlAttributes.php @@ -33,7 +33,7 @@ trait HtmlAttributes { * * @return array<string[]|string|bool> */ - final public function get_attributes( array $except = [ 'name', 'method', 'action' ] ): array { + final public function get_attributes( array $except = [ 'name', 'class', 'method', 'action' ] ): array { return array_filter( $this->attributes, static function ( $attribute, $key ) use ( $except ) { -- GitLab