Skip to content

Commit 04aebc3

Browse files
committed
ViewContentMetaDataCommand.php: Fix arg type
Fix "Argument #1 ($contentId) must be of type int, string given"
1 parent 3b01b78 commit 04aebc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code_samples/api/public_php_api/src/Command/ViewContentMetaDataCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5353
$user = $this->userService->loadUserByLogin('admin');
5454
$this->permissionResolver->setCurrentUserReference($user);
5555

56-
$contentId = $input->getArgument('contentId');
56+
$contentId = (int) $input->getArgument('contentId');
5757

5858
// Metadata
5959
$contentInfo = $this->contentService->loadContentInfo($contentId);

0 commit comments

Comments
 (0)