Skip to content

Commit

Permalink
fix: restore array_push and string format in HTML filter
Browse files Browse the repository at this point in the history
Restore the original array construction format while replacing deprecated each() function:
- Maintain array_push() instead of using array[] syntax
- Keep the exact same string format for attributes
- Ensure compatibility with PHP 8.2 and 8.3
  • Loading branch information
GabrielBragaGit authored Dec 31, 2024
1 parent e2fd7bf commit 7b204bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/Webkul/Email/src/Helpers/Htmlfilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function tln_tagprint($tagname, $attary, $tagtype)
$atts = [];

foreach ($attary as $attname => $attvalue) {
$atts[] = "$attname=$attvalue";
array_push($atts, "$attname=$attvalue");
}

$fulltag .= ' '.implode(' ', $atts);
Expand Down

0 comments on commit 7b204bf

Please sign in to comment.