mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-02 09:14:48 +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
|
@ -51,7 +51,7 @@ class EntityExtensionTest extends WebTestCase
|
|||
$this->service = self::getContainer()->get(EntityExtension::class);
|
||||
}
|
||||
|
||||
public function testGetEntityType()
|
||||
public function testGetEntityType(): void
|
||||
{
|
||||
$this->assertEquals('part', $this->service->getEntityType(new Part()));
|
||||
$this->assertEquals('footprint', $this->service->getEntityType(new Footprint()));
|
||||
|
|
|
@ -55,7 +55,7 @@ class TwigCoreExtensionTest extends WebTestCase
|
|||
private $test3 = 5;
|
||||
private $test4 = 7;
|
||||
|
||||
public function getTest4()
|
||||
public function getTest4(): int
|
||||
{
|
||||
return $this->test4;
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ class UserExtensionTest extends WebTestCase
|
|||
$this->service = self::getContainer()->get(UserExtension::class);
|
||||
}
|
||||
|
||||
public function removeeLocaleFromPathDataSet()
|
||||
public function removeeLocaleFromPathDataSet(): ?\Generator
|
||||
{
|
||||
yield ['/', '/de/'];
|
||||
yield ['/test', '/de/test'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue