Skip to content

Warning thrown at php v8.0 #91

Closed
@DigiLive

Description

@DigiLive

I forgot to mention that I use PHP 8.0.

Found this in the error log with varying array keys:
PHP Warning: Undefined array key 5 in /lib/php-diff/Diff/Renderer/Html/Merged.php on line 217

preg_match_all('/\x0.*?\x1/', $changes['changed']['lines'][$lineNo], $addedParts, PREG_PATTERN_ORDER);

Something is incorrect with your error description or file. See below lines.

if (!$lineNo && $this->lastDeleted !== null) {
$headerClass = 'ChangeDelete';
}

Also the script doesn't throw a warning or error at my local server, using php v8.0.2.

Originally posted by @DigiLive in #90 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions