Skip to content

Commit 3961285

Browse files
committed
[PHPStan] TrashFacade.php
1 parent 3caffba commit 3961285

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/API/Facade/TrashFacade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function trash(string $locationURL)
3737
$urlAlias = $this->urlAliasService->lookup($locationURL);
3838
Assert::assertEquals(URLAlias::LOCATION, $urlAlias->type);
3939

40-
$location = $this->locationService->loadLocation($urlAlias->destination);
40+
$location = $this->locationService->loadLocation((int) $urlAlias->destination);
4141

4242
$this->trashService->trash($location);
4343
}

0 commit comments

Comments
 (0)