Skip to content

Creation of dynamic property Diff_SequenceMatcher.... is deprecated in php8+ #64

@a4992214

Description

@a4992214
<b>Deprecated</b>
:  Creation of dynamic property Diff_SequenceMatcher::$matchingBlocks is deprecated in <b>....\vendor\php-diff-master\lib\Diff\SequenceMatcher.php</b>
on line <b>129</b>
<br/>
<br/>
<b>Deprecated</b>
:  Creation of dynamic property Diff_SequenceMatcher::$opCodes is deprecated in <b>....\vendor\php-diff-master\lib\Diff\SequenceMatcher.php</b>
on line <b>130</b>
<br/>
<br/>
<b>Deprecated</b>
:  Creation of dynamic property Diff_SequenceMatcher::$fullBCount is deprecated in <b>....\vendor\php-diff-master\lib\Diff\SequenceMatcher.php</b>
on line <b>151</b>

Fix: Add the following lines to the start of the class:

class Diff_SequenceMatcher
{
    private ?array $matchingBlocks = null; // NEW
    private ?array $opCodes = null; // NEW
    private ?array $fullBCount = null; // NEW

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions