Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdekker committed Oct 6, 2024
1 parent 6e0d54e commit 3c262c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Unit/PHPStan/Lib/TypeNarrowerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ public function testGetTypesFromStringArray(): void
{
$arg = new Arg($this->createMock(Expr::class));

$narrower = new TypeNarrower($this->createMock(TypeStringResolver::class));
$narrower = $this->getMockBuilder(TypeNarrower::class)
->disableOriginalConstructor()
->getMock();

static::assertSame([], $narrower->getTypesFromStringArray($arg));
}
}

0 comments on commit 3c262c5

Please sign in to comment.