Skip to content

Commit 5ada04a

Browse files
authored
Merge pull request #72 from Chris53897/feature/new
fix: deprecation implicit nullable PHP 8.4
2 parents c5ca8be + 8a5d1e5 commit 5ada04a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Differ.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function __construct($outputBuilder = null)
8282
* @param array|string $from
8383
* @param array|string $to
8484
*/
85-
public function diff($from, $to, LongestCommonSubsequenceCalculator $lcs = null): string
85+
public function diff($from, $to, ?LongestCommonSubsequenceCalculator $lcs = null): string
8686
{
8787
$diff = $this->diffToArray(
8888
$this->normalizeDiffInput($from),
@@ -106,9 +106,9 @@ public function diff($from, $to, LongestCommonSubsequenceCalculator $lcs = null)
106106
*
107107
* @param array|string $from
108108
* @param array|string $to
109-
* @param LongestCommonSubsequenceCalculator $lcs
109+
* @param ?LongestCommonSubsequenceCalculator $lcs
110110
*/
111-
public function diffToArray($from, $to, LongestCommonSubsequenceCalculator $lcs = null): array
111+
public function diffToArray($from, $to, ?LongestCommonSubsequenceCalculator $lcs = null): array
112112
{
113113
if (is_string($from)) {
114114
$from = $this->splitStringByLines($from);

0 commit comments

Comments
 (0)