Skip to content
Snippets Groups Projects
Verified Commit a32c016e authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

fix: remove classes from basic attributes iteration

parent 08b0068a
Branches
Tags
3 merge requests!28release: 3.0.0,!23Feature/strong typing pp,!19Add strong typing for 3.0 version
Pipeline #6473 passed
...@@ -33,7 +33,7 @@ trait HtmlAttributes { ...@@ -33,7 +33,7 @@ trait HtmlAttributes {
* *
* @return array<string[]|string|bool> * @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( return array_filter(
$this->attributes, $this->attributes,
static function ( $attribute, $key ) use ( $except ) { static function ( $attribute, $key ) use ( $except ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment