Skip to content

Commit

Permalink
refactor to phpstan level 5
Browse files Browse the repository at this point in the history
  • Loading branch information
smhg committed Jun 30, 2023
1 parent 65a1c45 commit 42e7254
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
level: 4
level: 5
paths:
- src
- tests
7 changes: 4 additions & 3 deletions tests/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function testSetCharacterSet(): void

$this->expectException(\TypeError::class);

$sepaQrData->setCharacterSet('UTF8');
$sepaQrData->setCharacterSet('UTF8'); // @phpstan-ignore-line
}

public function testSetCurrency(): void
Expand Down Expand Up @@ -143,9 +143,10 @@ public function testSetVersionExceptionCase1(): void

public function testSetVersionExceptionCase2(): void
{
$sepaQrData = new Data();

$this->expectException(\TypeError::class);

$sepaQrData = new Data();
$sepaQrData->setVersion('v1');
$sepaQrData->setVersion('v1'); // @phpstan-ignore-line
}
}

0 comments on commit 42e7254

Please sign in to comment.