From 5337dfdad549b7127b666019c5069d89e0b11dae 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 2941d7011e..28a286f51c 100644 --- a/tests/integration/Core/Repository/URLAliasServiceTest.php +++ b/tests/integration/Core/Repository/URLAliasServiceTest.php @@ -1497,6 +1497,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; @@ -1515,6 +1516,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);