Skip to content

Deprecations message when calling writeHTMLCell() with specifics HTML codes #796

@sdespont

Description

@sdespont

When I call this function with the following comments, deprecation are trigged $tcPdf->writeHTMLCell(190, 70, null, null, $comment, 0, 0);

$comment = "<p><strong>sdfas </strong>df</p>";
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated

TCPDF/tcpdf.php

Line 18547 in f67b761

$postlen = strlen($dom[$key]['value']);


$comment = "<p>A <strong>B</strong>, C.<br /><br />D<strong> E,</strong> F</p>";
Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated

TCPDF/tcpdf.php

Line 17695 in f67b761

if (isset($line_align_data) AND (($line_align_data[0] == ($key - 1)) OR (($line_align_data[0] == ($key - 2)) AND (isset($dom[($key - 1)])) AND (preg_match('/^([\s]+)$/', $dom[($key - 1)]['value']) > 0)))) {


$comment = "<p>A <strong>B</strong>, C.<br /><br />D<strong> E,</strong> F</p>";
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated

TCPDF/tcpdf.php

Line 6395 in f67b761

if (strlen($txt) == 0) {

Could you have a look ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions