mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-23 18:28:49 +02:00
Fixed some return type deprecation messages
This commit is contained in:
parent
558440168d
commit
1cee1abe00
37 changed files with 70 additions and 70 deletions
|
@ -25,7 +25,7 @@ use PHPUnit\Framework\TestCase;
|
|||
|
||||
class EventCommentNeededHelperTest extends TestCase
|
||||
{
|
||||
public function testIsCommentNeeded()
|
||||
public function testIsCommentNeeded(): void
|
||||
{
|
||||
$service = new EventCommentNeededHelper(['part_edit', 'part_create']);
|
||||
$this->assertTrue($service->isCommentNeeded('part_edit'));
|
||||
|
@ -34,7 +34,7 @@ class EventCommentNeededHelperTest extends TestCase
|
|||
$this->assertFalse($service->isCommentNeeded('part_stock_operation'));
|
||||
}
|
||||
|
||||
public function testIsCommentNeededInvalidTypeException()
|
||||
public function testIsCommentNeededInvalidTypeException(): void
|
||||
{
|
||||
$service = new EventCommentNeededHelper(['part_edit', 'part_create']);
|
||||
$this->expectException(\InvalidArgumentException::class);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue