Fixed some return type deprecation messages

This commit is contained in:
Jan Böhmer 2023-04-15 19:33:39 +02:00
parent 558440168d
commit 1cee1abe00
37 changed files with 70 additions and 70 deletions

View file

@ -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()));

View file

@ -55,7 +55,7 @@ class TwigCoreExtensionTest extends WebTestCase
private $test3 = 5;
private $test4 = 7;
public function getTest4()
public function getTest4(): int
{
return $this->test4;
}

View file

@ -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'];