php-diff icon indicating copy to clipboard operation
php-diff copied to clipboard

The __construct function produces Deprecated in php8 error

Open a4992214 opened this issue 1 year ago • 0 comments

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)

a4992214 avatar Jan 29 '24 18:01 a4992214