Skip to content

Commit

Permalink
Document disabled inspection
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiLive authored and DigiLive committed Nov 19, 2020
1 parent 3954a2b commit 909e195
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/jblond/Diff/SequenceMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,11 @@ public function getMatchingBlocks(): array
$matchingBlocks = [];
while (!empty($queue)) {
[$aLower, $aUpper, $bLower, $bUpper] = array_pop($queue);
/**
* @noinspection PhpStrictTypeCheckingInspection
* $aLower, $aUpper, $bLower, $bUpper reported as wrong type because of multiple definitions of function
* count above.
*/
$longestMatch = $this->findLongestMatch($aLower, $aUpper, $bLower, $bUpper);
[$list1, $list2, $list3] = $longestMatch;
if ($list3) {
Expand Down
5 changes: 4 additions & 1 deletion tests/Diff/Renderer/MainRendererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public function testRenderSimpleDelete()
{
$renderer = new MainRenderer();
$renderer->diff = new Diff(['a'], []);

/** @noinspection PhpUnhandledExceptionInspection */
static::assertEquals(
[
[
Expand Down Expand Up @@ -98,7 +100,8 @@ public function testRenderFixesSpaces()
['a']
);

static::assertEquals(
/** @noinspection PhpUnhandledExceptionInspection */
$this->assertEquals(
[
[
[
Expand Down

0 comments on commit 909e195

Please sign in to comment.