diff --git a/tests/integration/Core/Repository/FieldType/SelectionIntegrationTest.php b/tests/integration/Core/Repository/FieldType/SelectionIntegrationTest.php index a65cf34835..2b81e3ae53 100644 --- a/tests/integration/Core/Repository/FieldType/SelectionIntegrationTest.php +++ b/tests/integration/Core/Repository/FieldType/SelectionIntegrationTest.php @@ -35,7 +35,7 @@ public function getTypeName() * * If Selection is improved to be able to index + search for string also with LegacySearch, then adapt this too. */ - protected function supportsLikeWildcard($value) + protected function supportsLikeWildcard($value): bool { return false; } diff --git a/tests/lib/MVC/Symfony/Component/Serializer/HostElementNormalizerTest.php b/tests/lib/MVC/Symfony/Component/Serializer/HostElementNormalizerTest.php index ea9ba7a1dc..b9fb81129b 100644 --- a/tests/lib/MVC/Symfony/Component/Serializer/HostElementNormalizerTest.php +++ b/tests/lib/MVC/Symfony/Component/Serializer/HostElementNormalizerTest.php @@ -46,7 +46,7 @@ public function testNormalization(): void $matcher = new HostElement(2); // Set request and invoke match to initialize HostElement::$hostElements $matcher->setRequest(SimplifiedRequest::fromUrl('https://ibexa.dev/foo/bar')); - $matcher->match(); + self::assertSame('dev', $matcher->match()); self::assertEquals( self::DATA, diff --git a/tests/lib/Repository/Service/Mock/UrlAliasTest.php b/tests/lib/Repository/Service/Mock/UrlAliasTest.php index ed1aee598f..f0e751f2ab 100644 --- a/tests/lib/Repository/Service/Mock/UrlAliasTest.php +++ b/tests/lib/Repository/Service/Mock/UrlAliasTest.php @@ -56,7 +56,8 @@ public function testConstructor() { $repositoryMock = $this->getRepositoryMock(); - $service = new UrlALiasService( + /** @phpstan-ignore new.resultUnused */ + new UrlALiasService( $repositoryMock, $this->urlAliasHandler, $this->getNameSchemaServiceMock(),