Skip to content

Commit

Permalink
Fix set_properties() method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
kenntchan committed Feb 5, 2024
1 parent 5003e3e commit baad4de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions library/Kima/Html/CssToInline.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ private function get_properties($attribute)
* @param array $properties
* @param DOMELement $element
*/
private function set_properties($original_properties, $properties, & $element)
private function set_properties($original_properties, $properties, &$element)
{
// add new properties into the list
foreach ($original_properties as $key => $value) {
Expand Down Expand Up @@ -421,6 +421,7 @@ private function cleanup_html($html)
}

$html = preg_replace('|<link(.*)>(.*)>|isU', '', $html);

// return
return $html;
}
Expand Down Expand Up @@ -631,4 +632,4 @@ private function sort_on_specifity($e1, $e2)
// fallback
return 0;
}
}
}

0 comments on commit baad4de

Please sign in to comment.