[ticket/16955] Correct docblocks in diff engine

PHPBB3-16955
This commit is contained in:
Marc Alexander 2022-12-26 13:54:42 +01:00
parent 160510dab3
commit ea07e4946f
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -46,8 +46,8 @@ class diff
/**
* Computes diffs between sequences of strings.
*
* @param array &$from_content An array of strings. Typically these are lines from a file.
* @param array &$to_content An array of strings.
* @param array|string &$from_content An array of strings. Typically these are lines from a file.
* @param array|string &$to_content An array of strings.
* @param bool $preserve_cr If true, \r is replaced by a new line in the diff output
*/
function __construct(&$from_content, &$to_content, $preserve_cr = true)
@ -498,9 +498,9 @@ class diff3 extends diff
/**
* Computes diff between 3 sequences of strings.
*
* @param array &$orig The original lines to use.
* @param array &$final1 The first version to compare to.
* @param array &$final2 The second version to compare to.
* @param array|string &$orig The original lines to use.
* @param array|string &$final1 The first version to compare to.
* @param array|string &$final2 The second version to compare to.
* @param bool $preserve_cr If true, \r\n and bare \r are replaced by a new line
* in the diff output
*/