Skip to content

The __construct function produces Deprecated in php8 error #62

Description

@a4992214

The __construct function in SequenceMatcher produces Deprecated: Optional parameter $junkCallback declared before required parameter $options is implicitly treated as a required parameter [i.e. $junkCallback has a default but $options does not]

public function __construct($a, $b, $junkCallback=null, $options)

Quick fix might be :

public function __construct($a, $b, $junkCallback=null, $options=null)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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