mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +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
|
@ -42,7 +42,7 @@ class StructuralElementNormalizerTest extends WebTestCase
|
|||
$this->service = self::getContainer()->get(StructuralElementNormalizer::class);
|
||||
}
|
||||
|
||||
public function testNormalize()
|
||||
public function testNormalize(): void
|
||||
{
|
||||
$category1 = (new Category())->setName('Category 1');
|
||||
$category11 = (new Category())->setName('Category 1.1');
|
||||
|
@ -65,7 +65,7 @@ class StructuralElementNormalizerTest extends WebTestCase
|
|||
$this->assertArrayNotHasKey('type', $data11);
|
||||
}
|
||||
|
||||
public function testSupportsNormalization()
|
||||
public function testSupportsNormalization(): void
|
||||
{
|
||||
//Normalizer must only support StructuralElement objects (and child classes)
|
||||
$this->assertFalse($this->service->supportsNormalization(new \stdClass()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue