From 51dfca1bcd5b5bf0ef796ee3534ed79df1b165ae Mon Sep 17 00:00:00 2001 From: Bartek Wajda Date: Tue, 19 Mar 2024 14:33:42 +0100 Subject: [PATCH] IBX-3957: Fixed issues found by PHPStan --- tests/integration/Core/Repository/URLAliasServiceTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/integration/Core/Repository/URLAliasServiceTest.php b/tests/integration/Core/Repository/URLAliasServiceTest.php index 92dd01eb34..351dc8075e 100644 --- a/tests/integration/Core/Repository/URLAliasServiceTest.php +++ b/tests/integration/Core/Repository/URLAliasServiceTest.php @@ -1501,6 +1501,7 @@ public function testRenamingParentContentDoesntBreakChildAlias(): void // 2. Create child folder $child = $this->createFolder([$languageCode => 'b'], $folderLocationId); + /** @var \Ibexa\Contracts\Core\Repository\Values\Content\Location $childLocation */ $childLocation = $child->getVersionInfo()->getContentInfo()->getMainLocation(); $childLocationId = $childLocation->id; @@ -1519,6 +1520,7 @@ public function testRenamingParentContentDoesntBreakChildAlias(): void $contentService->publishVersion($renamedFolder->getVersionInfo()); // Loading aliases shouldn't throw a `BadStateException` + /** @var array $childLocationAliases */ $childLocationAliases = $urlAliasService->listLocationAliases($childLocation); self::assertCount(1, $childLocationAliases);