Skip to content

Commit

Permalink
feat: phpstan fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit382 committed Sep 26, 2024
1 parent 998e479 commit 5361de8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/ProductSearchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public function it_returns_an_empty_laravelcollection_when_no_results_found(): v
{
$results = OpenFoodFacts::find('no-such-product-exists');

$this->assertTrue($results->isEmpty());
// Call to method PHPUnit\Framework\Assert::assertTrue() with bool will always evaluate to false.
// 💡 Because the type is coming from a PHPDoc
$this->assertEquals(true, $results->isEmpty());
}

/** @test */
Expand Down

0 comments on commit 5361de8

Please sign in to comment.