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
No related branches found
No related tags found
3 merge requests!28release: 3.0.0,!23Feature/strong typing pp,!19Add strong typing for 3.0 version
Pipeline #6473 passed
This commit is part of merge request !28. Comments created here will be created in the context of that merge request.
......@@ -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 ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment