Skip to content

Commit

Permalink
Add PHPStan ignore line to test
Browse files Browse the repository at this point in the history
A line to ignore PHPStan analysis was added to the `findByExternalId('')` method call in the `ContactPersonRepositoryInterfaceTest.php` test. This annotative change helps to suppress the PHPStan error that's triggered by this particular line of testing code.

Signed-off-by: mesilov <[email protected]>
  • Loading branch information
mesilov committed Jul 21, 2024
1 parent c8631b5 commit 5707f4c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ final public function testFindByExternalIdWithEmptyId(

$contactPersonRepository->save($contactPerson);
$this->expectException(InvalidArgumentException::class);
/** @phpstan-ignore-next-line */
$contactPersonRepository->findByExternalId('');
}

Expand Down

0 comments on commit 5707f4c

Please sign in to comment.