Skip to content

Commit

Permalink
Fix PHP8.2 deprecated warnings in getHtmlDomArray() in tcpdf.php
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Johnson Nallori <johnson361@gmail.com>
  • Loading branch information
johnson361 committed Feb 19, 2024
1 parent 5fce932 commit 0085004
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tcpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -16389,6 +16389,8 @@ public function getHTMLFontUnits($val, $refsize=12, $parent_size=12, $defaultuni
* @since 3.2.000 (2008-06-20)
*/
protected function getHtmlDomArray($html) {
if(empty($html))
return [];
// array of CSS styles ( selector => properties).
$css = array();
// get CSS array defined at previous call
Expand Down

0 comments on commit 0085004

Please sign in to comment.