From a7d17c90b12cf2f52d2e1d8eac1dbd271a45e738 Mon Sep 17 00:00:00 2001 From: o0h Date: Mon, 11 Nov 2024 23:09:01 +0900 Subject: [PATCH] Fix stan --- src/Differ/DiffCollector.php | 2 +- tests/unit/Differ/DiffFactoryTest.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Differ/DiffCollector.php b/src/Differ/DiffCollector.php index 57f0973..cacee46 100644 --- a/src/Differ/DiffCollector.php +++ b/src/Differ/DiffCollector.php @@ -80,7 +80,7 @@ public function getPhpDiffs(bool $includeNonAstChanged = true): array /** * Get the non-PHP diffs. * - * @return array the array of non-PHP diffs + * @return list the array of non-PHP diffs */ public function getNonPhpDiffs(): array { diff --git a/tests/unit/Differ/DiffFactoryTest.php b/tests/unit/Differ/DiffFactoryTest.php index 5504759..17b61ba 100644 --- a/tests/unit/Differ/DiffFactoryTest.php +++ b/tests/unit/Differ/DiffFactoryTest.php @@ -28,7 +28,6 @@ public function testCreateForNonPhp(): void $diff = $subject->createForNonPhp($path, $status); - $this->assertInstanceOf(Diff::class, $diff); $this->assertSame($path, $diff->path); $this->assertSame($status, $diff->status); }