Skip to content

Commit 909e195

Browse files
committed
Document disabled inspection
1 parent 3954a2b commit 909e195

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

lib/jblond/Diff/SequenceMatcher.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,11 @@ public function getMatchingBlocks(): array
396396
$matchingBlocks = [];
397397
while (!empty($queue)) {
398398
[$aLower, $aUpper, $bLower, $bUpper] = array_pop($queue);
399+
/**
400+
* @noinspection PhpStrictTypeCheckingInspection
401+
* $aLower, $aUpper, $bLower, $bUpper reported as wrong type because of multiple definitions of function
402+
* count above.
403+
*/
399404
$longestMatch = $this->findLongestMatch($aLower, $aUpper, $bLower, $bUpper);
400405
[$list1, $list2, $list3] = $longestMatch;
401406
if ($list3) {

tests/Diff/Renderer/MainRendererTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ public function testRenderSimpleDelete()
4848
{
4949
$renderer = new MainRenderer();
5050
$renderer->diff = new Diff(['a'], []);
51+
52+
/** @noinspection PhpUnhandledExceptionInspection */
5153
static::assertEquals(
5254
[
5355
[
@@ -98,7 +100,8 @@ public function testRenderFixesSpaces()
98100
['a']
99101
);
100102

101-
static::assertEquals(
103+
/** @noinspection PhpUnhandledExceptionInspection */
104+
$this->assertEquals(
102105
[
103106
[
104107
[

0 commit comments

Comments
 (0)