Skip to content

Commit a4c3148

Browse files
Suppress PhpStorm warning
1 parent a73e2f3 commit a4c3148

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/MemoryEfficientLongestCommonSubsequenceCalculator.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ private function length(array $from, array $to): array
7878
if ($from[$i] === $to[$j]) {
7979
$current[$j + 1] = $prev[$j] + 1;
8080
} else {
81-
// don't use max() to avoid function call overhead
81+
/**
82+
* @noinspection PhpConditionCanBeReplacedWithMinMaxCallInspection
83+
*
84+
* We do not use max() here to avoid the function call overhead
85+
*/
8286
if ($current[$j] > $prev[$j + 1]) {
8387
$current[$j + 1] = $current[$j];
8488
} else {

0 commit comments

Comments
 (0)