Skip to content

Commit

Permalink
fix tag refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
jturbide committed Jul 4, 2023
1 parent 7676237 commit a7b9f3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,11 @@ public static function tagParams(string $tag, array $params = [], string $format
*/
public static function getParams(array $params = [], string $format = ' %2$s="%1$s"', ?string $glue = null): string
{
$retParams = [];
foreach ($params as $param) {
$params = array_merge_recursive(self::getAttr($param), $params);
$retParams = array_merge_recursive(self::getAttr($param), $retParams);
}
return self::implodeSprintf($params, $format, $glue);
return self::implodeSprintf($retParams, $format, $glue);
}

public static function params(array $params = [], string $format = ' %2$s="%1$s"', ?string $glue = null): void
Expand Down

0 comments on commit a7b9f3c

Please sign in to comment.